随笔分类 -  JS

摘要:参考:http://www.runoob.com/jquery/misc-inarray.html js判断数组中是否包含某个元素 js字符串中判断是否包含某个字符 阅读全文
posted @ 2018-07-15 13:02 lvlin241 阅读(283) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/zsq520520/article/details/53375284?locationNum=8&fps=1 阅读全文
posted @ 2018-07-15 12:43 lvlin241 阅读(1492) 评论(0) 推荐(0) 编辑
摘要:参考:http://layer.layui.com/api.html layer提供了5种层类型: 0:信息框,默认 1:页面层 2:iframe层 3:加载层 4:tips层 阅读全文
posted @ 2018-07-15 12:34 lvlin241 阅读(10430) 评论(0) 推荐(1) 编辑
摘要:参考:https://zhidao.baidu.com/question/559052179.html 阅读全文
posted @ 2018-07-15 12:31 lvlin241 阅读(159) 评论(0) 推荐(0) 编辑
摘要:$("#inputName").attr("type","text"); 阅读全文
posted @ 2018-07-15 12:19 lvlin241 阅读(10852) 评论(0) 推荐(0) 编辑
摘要:参考:http://fly.layui.com/jie/19690/ 阅读全文
posted @ 2018-07-15 12:11 lvlin241 阅读(8612) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/ben121011/p/layer.html 阅读全文
posted @ 2018-07-15 12:07 lvlin241 阅读(199) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/tarataotao/article/details/10376657 阅读全文
posted @ 2018-07-15 12:06 lvlin241 阅读(352) 评论(0) 推荐(0) 编辑
摘要:参考:http://www.trirand.com/jqgridwiki/doku.php?id=wiki:groupingheadar jQuery("#表格id").jqGrid({ ... colNames: ['Date', 'Client', 'Amount', 'Tax', 'Total 阅读全文
posted @ 2018-07-15 12:02 lvlin241 阅读(498) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/u012746051/article/details/52949353 $("#列表区域id").jqGrid('clearGridData');// 清空数据 $("#列表区域id").jqGrid('setGridParam',{ url:"xxx.do", datatype:"json", mtype:"post",... 阅读全文
posted @ 2018-07-15 11:54 lvlin241 阅读(4421) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/hgg923/article/details/53610548 @RequestMapping(value = "changeMobile", method = RequestMethod.POST, produces = "application/ 阅读全文
posted @ 2018-07-15 11:51 lvlin241 阅读(129) 评论(0) 推荐(0) 编辑
摘要:参考: http://tool.oschina.net/regex/ 阅读全文
posted @ 2018-07-15 11:37 lvlin241 阅读(948) 评论(0) 推荐(0) 编辑
摘要:$("#下拉框id").find("option:selected").text(); 参考:https://www.cnblogs.com/huhuixin/p/6182067.html 阅读全文
posted @ 2018-05-24 12:09 lvlin241 阅读(207) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/fupengyao/article/details/62220886 阅读全文
posted @ 2018-05-23 12:07 lvlin241 阅读(119) 评论(0) 推荐(0) 编辑
摘要:参考:http://www.w3school.com.cn/jquery/ajax_ajax.asp 阅读全文
posted @ 2018-05-16 10:26 lvlin241 阅读(74) 评论(0) 推荐(0) 编辑
摘要:参考: https://blog.csdn.net/shuifa2008/article/details/41121269 https://blog.csdn.net/shuifa2008/article/details/41121269 阅读全文
posted @ 2018-04-11 17:36 lvlin241 阅读(785) 评论(0) 推荐(0) 编辑
摘要:1. input清空内容 $("#选择器id").val(""); $("input[name='input框名称']"); // 选择所有的name属性等于'input框名称'的input元素 $("input[name!='input框名称']"); // 选择所有的name属性不等于'input框名称'的input元素 $("input[name^='in... 阅读全文
posted @ 2018-04-09 14:38 lvlin241 阅读(169) 评论(0) 推荐(0) 编辑
摘要:参考:http://www.runoob.com/jsref/jsref-decodeuricomponent.html 阅读全文
posted @ 2018-03-23 11:12 lvlin241 阅读(217) 评论(0) 推荐(0) 编辑
摘要:正则表达式: 参考: http://www.runoob.com/js/js-obj-regexp.html 字符串replace方法: 参考: http://www.runoob.com/jsref/jsref-replace.html 应用:用""替换 "集齐国际三大信用卡巨头 哈行JCB功能< 阅读全文
posted @ 2018-03-14 16:18 lvlin241 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-02-07 18:17 lvlin241 阅读(411) 评论(0) 推荐(0) 编辑