摘要:
1) 浏览器加载静态HTML文件并解析为DOM; 2) 浏览器加载angular.js文件; 3) angular监听 DOMContentLoaded 事件,监听到时开始启动; 4) angular寻找ng-app指令,确定作用范围; 5) 找到app中定义的Module使用$injector服务 阅读全文
摘要:
$('div').click(function(e){e = window.event || e; obj = $(e.srcElement || e.target); if(obj.attr('id') == 'edit') return false;}); 阅读全文
摘要:
网页弹出窗优化 jquery插件-toastmessagedemo:http://akquinet.github.io/jquery-toastmessage-plugin/demo/demo.html 阅读全文
摘要:
if是否其他写法:等于小于小于0或为空iteratorselect+iterator+enumselect选中值$("#selectid option:selected").val()$("#selectid option:selected").text()$("#selectid").val("p... 阅读全文
摘要:
【jquery表单验证】jquery-validation 使用http://fhuan123.iteye.com/blog/1717285http://blog.csdn.net/windxxf/article/details/7520340【Struts2标签库】http://www.cnblo... 阅读全文
摘要:
iterator标签使用radio迭代传值jsp页面代码:其中list="result" :result为枚举集合,value="boxInfoCheckResult":boxInfoCheckResult为checkboxs中bean的对应字段。后台action代码:private static ... 阅读全文
摘要:
在一个Web项目用到了Lucene,每次MySQL导入新的数据库测试数据时候需要重置Lucene时会报"too many connections"错误。原因:MySQL默认最大连接数是100,当超过100连接时就会出错。解决方案一:在Navicat for MySQL中执行“set Global m... 阅读全文