摘要:
$.each(lists, function(index,element) { ... }) $(selector).each(function(index,element) { ... }) for(var i=0; i<length; i++) { ... } 阅读全文
摘要:
数量: "amount": /^[1-9]\d*$/, 价格: "price": /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/, 邮箱: "email":/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/, 手机 阅读全文
摘要:
方式一: 修改tomcat配置文件 ==> conf/server.xml ==> 添加“URIEncoding="utf-8"” <Connector port="8082" protocol="HTTP/1.1" URIEncoding="utf-8" > 方式二: 前台: url = enco 阅读全文
摘要:
$.ajax({ type: "post", dataType: "json", url: '', data: data, success: function (data) { ... } }); $.get(url, data,function(data){ .... }); $.post(url , data, function(data){ ... 阅读全文
摘要:
table { table-layout:fixed; WORD-BREAK:break-all;} 阅读全文