随笔分类 -  JavaScript

摘要:在ng-repeat 中使用 ng-click 无效 阅读全文
posted @ 2016-05-30 10:14 欣欣点灯 阅读(596) 评论(0) 推荐(0)
摘要:SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started. 阅读全文
posted @ 2016-05-16 07:44 欣欣点灯 阅读(779) 评论(0) 推荐(0)
摘要:CheckBox 判定是否选中 使用 attr('checked')来做判别是不行的,除非所有的选中取消都是使用这个属性来处理。正确的做法是使用.prop('checked') 来判定。 阅读全文
posted @ 2015-08-22 09:47 欣欣点灯 阅读(412) 评论(0) 推荐(0)
摘要://初始化 加载数据 /* Init DataTables */ var oTable = $('#editable').dataTable({ bLengthChange: false, pageLength: 10, ... 阅读全文
posted @ 2015-08-14 11:10 欣欣点灯 阅读(359) 评论(0) 推荐(0)
摘要:form 表单 清除 $('#commentForm')[0].reset();form 表单 加载数据 JSON数组function loadData(jsonStr) { var obj = eval("(" + jsonStr + ")"); ... 阅读全文
posted @ 2015-08-14 11:03 欣欣点灯 阅读(281) 评论(0) 推荐(0)