
js
KX_JoyK
这个作者很懒,什么都没留下…
展开
-
鼠标委托事件
//委托鼠标over $('.in1').on("mouseover", '.div2', function () { if ($(this).attr('clicked') != '1') { if ($(this).attr('editing'...原创 2019-02-20 09:54:13 · 268 阅读 · 0 评论 -
jqGrid的单选设置
jqgrid需要设置成选项固定选中,代码如下onSelectRow: function (id) { if (ids.length <= 0) ids = $(this).jqGrid('getGridParam', 'selarrrow'); //获取选中行的ID ...原创 2019-02-20 09:59:01 · 982 阅读 · 0 评论 -
验证输入的内容范围
$.extend($.fn.validatebox.defaults.rules, { telNum: { //既验证手机号,又验证座机号 validator: function (value, param) { return /(^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(...原创 2019-02-21 10:16:18 · 221 阅读 · 0 评论 -
JS中的money\qty\date的显示格式
function format_value(value) { if (value == null || value == undefined || value == "") { return 0; } var a = (parseFloat(value).toFixed(0) + '%'); return a;}function format_m...原创 2019-02-21 10:52:59 · 358 阅读 · 0 评论