`
文章列表

jquery tab切换

<div class="login_nav" id="login"> <div class="loginFunc"> <div class="loginFuncDynPw">小说城</div> <div class="loginFuncNormal">军婚小说</div> </div&g ...
1: 遍历css 相关dom的值 <script type="text/javascript" src="/js/jquery/jquery-1.8.1.min.js"></script> <a href="tiepian_add.jsp" title="创建贴片"> <button class="button orange1 medium">创建贴片</button> </a> <a href=" ...
跨多行、多列的表元(Table Span)    跨多列的表元 <th colspan=#>    <table border>    <tr><th colspan=3> Morning Menu</th>  <!--colspan=3,跨三列表元-->    <tr><th>Food</th>       <th>Drink</th>  <th>Sweet</th>    <tr><td>A</td> ...

打印IP 来源

<% String userAgent = request.getHeader("User-Agent"); if (userAgent != null && userAgent.indexOf("http") == -1 && userAgent.toLowerCase().indexOf("spider") == -1) { String ip = request.getRemoteHost(); IpUtil ipUtil = new IpUtil(); String country = ip ...
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> ${fn:substring(book.summary, 0, 55)} 效果:
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 6,388 milliseconds ago. ...
<script language="javascript"> var checkSubmitFlg = false; function checkSubmit() { if (checkSubmitFlg == true) { alert("正在查询中.."); return false; } checkSubmitFlg = true; setTimeout(function() { ...
SELECT B.* FROM tbl_mall_order B WHERE NOT EXISTS (SELECT 'X' FROM tbl_mall_shoping_log C WHERE C.order_no = B.order_no)
利用java抓取网页上的所有图片: 用两个正则表达式: 1、匹配html中img标签的正则:<img.*src=(.*?)[^>]*?> 2、匹配img标签中得src中http路径的正则:http:\"?(.*?)(\"|>|\\s+) 实现: [java] view plaincopyprint?     package org.swinglife.main;            import java.io.File;      import java.io.FileOutputStream;      import ja ...
import org.apache.commons.io.FileUtils; public static void main(String[] args) throws IOException { File file = new File("c:\\1\\2\\3\\4.txt"); FileUtils.writeStringToFile(file, "1:\r\n", false); FileUtils.writeStringToFile(file, "2:\r\n", ...
三种配置环境变量的方法 1. 修改/etc/profile文件 如果你的计算机仅仅作为开发使用时推荐使用这种方法,因为所有用户的shell都有权使用这些环境变量,可能会给系统带来安全性问题。 ·用文本编辑器打开/etc/profile ·在profile文件末尾加入: export JAVA_HOME=/usr/share/jdk1.6.0_14 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ·重新登录 ·注解 a. 你要将 /usr/sha ...
<Resource name="jdbc/testDB" //指定的jndi名称,会用于spring数据源bean的配置和ResourceLink的配置 type="javax.sql.DataSource" //数据源床型,使用标准的javax.sql.DataSource driverClassName="com.mysql.jdbc.Driver" //JDBC驱动器 url="jdbc:mysql ...

mysql常用

替换: update book set SUMMARY=REPLACE(SUMMARY,'作者: 分享到: document.getElementById("bdshell_js").src = "http://www.xiaoshuocity.comstatic/js/shell_v2.js?t=" + new Date().getHours();','')
<bean id="dataSourceOracle2" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName"> <value>${jdbc.oralce.driverClassName}</value> </property> <property name="url&qu ...

android 权限示例

android 权限示例,考进项目"AndroidManifest.xml"就可用了。 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission> <use ...
Global site tag (gtag.js) - Google Analytics