摘要:
$("#tbAccountInforMation td.required").each(function() { var text = $(this).html().replace(//g, ""); text = "* "+text; $(this).html(text); }); 阅读全文
摘要:
PhysicianManagement.prototype.listPhysician = function() { alert(JSON.stringify(this.physicianList)); // {} alert(JSON.stringify(this.physician... 阅读全文
摘要:
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... 阅读全文
摘要:
JSON.stringify(object); //将object类型转换成json stringJSON.parse(string); // 将string类型转换称json 对象 阅读全文
摘要:
@Override protected int insert(Card record) { int result = cardMapper.insertSelective(record); return (int) (result == 1 ? rec... 阅读全文
摘要:
switch(value), 这个value只能使用能够转int类型的类型。如 char String int enum >>> Only convertible int values, strings or enum variables are permittedcase 必须和value的类型一... 阅读全文
摘要:
$("#login-showpassword").click(function(){ //$(this).attr("checked") 这个返回undefined //this.checked; 返回true if($(this).is(":checked")) { $("#text-p... 阅读全文
摘要:
对象 JavaScript 中除了数字,字符串,布尔值,null和undefined之外都是对象。对象分类 内置对象:数组 ,函数 , 日期 , 正则表达式... 宿主对象: window ...document...(也可以看作内置对象) 自定义对象,创建对象 对象字面量方式: var objec... 阅读全文
摘要:
作用域: (理解闭包的前提是先理解JavaScript的作用域) JavaScript使用函数作用域而不是块级作用域,变量在声明他们的函数体嵌套的任意函数体内都是有定义的。 JavaScript的函数作用域是指:在函数内声明的所有变量在函数体内始终是可见的。 好的做法是将变量的声明都放到functi... 阅读全文
摘要:
数组 JavaScript的数组可以保存不同类型的值。 如 : var array = ['string',1,true,new Object()]; length 数组的length可以没有预定义长度,所以不会出现下标越界,var array = [12]; document.writeln(... 阅读全文