`
文章列表

关于线程同步问题

    博客分类:
  • java
* Java线程:线程的同步   */   public class Test {   public static void main(String[] args) {   User u = new User("张三", 100);   MyThread t1 = new MyThread("线程A", u, 20);   MyThread t2 = new MyThread("线程B", u, - ...
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> function say(say) { alert(say); } eval("say")("hello world"); </script> </head> & ...

jquery live()的使用

<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p").live("click",function(){ $(this).hide(); }); $(&quo ...
1.进入http://lucene.apache.org/solr/ 下载solr   2.下载后解压压缩包   3.进入控制台将路径F:\apache-solr-3.6.0\apache-solr-3.6.0\example下   4.输入 java -jar start.jar 我们可以用jetty部署solr   5.打开浏览器:输入 http://localhost:8983/solr/admin/   6.用solr搜索

arrayClone

    博客分类:
  • java
package com.reflect; /** * Created by IntelliJ IDEA. * User: zhangchuanlong * Date: 12-4-7 * Time: 下午10:11 * To change this template use File | Settings | File Templates. */ public class ArrayClone { public static void main(String[] args) { int a[]={1,2,3,4,5, ...
import java.lang.reflect.Field; /** * Created by IntelliJ IDEA. * User: zhangchuanlong * Date: 12-4-7 * Time: 下午9:49 * To change this template use File | Settings | File Templates. */ public class Feflection { public static void initIntFields(final Object obj) { try { ...

表格查找

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset ...

js event.code

keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = Pause keycode 20 = Caps_Lock keycode 27 = Escape Escape keycode 32 = space space keycode 33 = Prior keycode 34 ...

JS验证

var regexEnum = { intege:"^-?[1-9]\\d*$", //整数 intege1:"^[1-9]\\d*$", //正整数 intege2:"^-[1-9]\\d*$", //负整数 num:"^([+-]?)\\d*\\.?\\d+$", //数字 num1:"^[1-9]\\d*|0$", //正数(正整数 + 0) num2:"^-[1-9]\\d*|0$", //负数(负 ...
//进厂里程提醒次数 var startMileageTimes = 0; // 添加验证方法 (验证日期前后顺序) jQuery.validator.addMethod("isPreDate", function(value, element, param) { return this.optional(element) || isPreDate(value, param[0]) }, "出厂时间不能早于入厂时间"); // 添加验证方法 (固定电话) jQuery.validator.addMethod("isTel ...
var selectItemNum = -1; var selectmore = -1; var domTitle; var selectValue = ''; jQuery().ready(function() { var elementCarNo = document.getElementById("licenceNo"); jQuery("#licenceNo").bind("keyup", function() { webChangelicenceNo(this); ...

ajax

jQuery.ajax({ type:"POST", url:"product.do?method=sevenOrEightLicenseNo", data:{plateValue:nameValue}, cache:false, dataType:"json", success:function(jsonStr){ ...
http://www.odi.ch/prog/design/newbies.php http://findbugs.sourceforge.net/   http://www.juvenxu.com/training/   http://www.roseindia.net/spring/springfileuploadexample.shtml http://docs.oracle.com/javaee/6/tutorial/doc/gexaj.html#gexae   http://docs.oracle.com/javase/tutorial/jdbc/b ...
//start验证 jQuery("#repairOrderForm").validate({ /*errorLabelContainer: "#messageBox", //显示错误信息的容器ID wrapper: "li", //包含每个错误信息的容器*/ rules:{ licenceNo:{ r ...
jQuery("#saveBtn").click(function() { reMoveAttrs(); jQuery("#table_task :text").rules("remove"); jQuery("#table_productNo_2 :text").rules("remove"); if (jQuery("#mobile").val().trim() == "" ...
Global site tag (gtag.js) - Google Analytics