上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: $("#tbAccountInforMation td.required").each(function() { var text = $(this).html().replace(//g, ""); text = "* "+text; $(this).html(text); }); 阅读全文
posted @ 2014-09-16 16:41 廖东海 阅读(2228) 评论(0) 推荐(0) 编辑
摘要: PhysicianManagement.prototype.listPhysician = function() { alert(JSON.stringify(this.physicianList)); // {} alert(JSON.stringify(this.physician... 阅读全文
posted @ 2014-09-05 13:47 廖东海 阅读(287) 评论(0) 推荐(0) 编辑
摘要: UPDATE i18nresource SET languageId = 'en-us' Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that use... 阅读全文
posted @ 2014-09-04 17:59 廖东海 阅读(270) 评论(0) 推荐(0) 编辑
摘要: JSON.stringify(object); //将object类型转换成json stringJSON.parse(string); // 将string类型转换称json 对象 阅读全文
posted @ 2014-09-04 14:37 廖东海 阅读(269) 评论(0) 推荐(0) 编辑
摘要: @Override protected int insert(Card record) { int result = cardMapper.insertSelective(record); return (int) (result == 1 ? rec... 阅读全文
posted @ 2014-09-03 19:10 廖东海 阅读(264) 评论(0) 推荐(0) 编辑
摘要: switch(value), 这个value只能使用能够转int类型的类型。如 char String int enum >>> Only convertible int values, strings or enum variables are permittedcase 必须和value的类型一... 阅读全文
posted @ 2014-09-01 18:10 廖东海 阅读(335) 评论(0) 推荐(0) 编辑
摘要: $("#login-showpassword").click(function(){ //$(this).attr("checked") 这个返回undefined //this.checked; 返回true if($(this).is(":checked")) { $("#text-p... 阅读全文
posted @ 2014-09-01 11:21 廖东海 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 对象 JavaScript 中除了数字,字符串,布尔值,null和undefined之外都是对象。对象分类 内置对象:数组 ,函数 , 日期 , 正则表达式... 宿主对象: window ...document...(也可以看作内置对象) 自定义对象,创建对象 对象字面量方式: var objec... 阅读全文
posted @ 2014-08-29 15:39 廖东海 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 作用域: (理解闭包的前提是先理解JavaScript的作用域) JavaScript使用函数作用域而不是块级作用域,变量在声明他们的函数体嵌套的任意函数体内都是有定义的。 JavaScript的函数作用域是指:在函数内声明的所有变量在函数体内始终是可见的。 好的做法是将变量的声明都放到functi... 阅读全文
posted @ 2014-08-28 20:04 廖东海 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 数组 JavaScript的数组可以保存不同类型的值。 如 : var array = ['string',1,true,new Object()]; length 数组的length可以没有预定义长度,所以不会出现下标越界,var array = [12]; document.writeln(... 阅读全文
posted @ 2014-08-27 18:17 廖东海 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页