随笔分类 -  js

摘要:<html><head></head><body> <div> <div id="demo" style="overflow:auto;height:80px;width:100;position:relative" onscroll="vertical(this)"> <table border= 阅读全文
posted @ 2018-11-02 11:59 enych 阅读(1079) 评论(0) 推荐(0)
摘要:var w_html = resJson.Data.Contents var w_html1 = w_html.replace(/\ /g, "&nbsp;"); this.content = w_html1 var w_html1 = w_html.replace(/\ /g, "&nbsp;") 阅读全文
posted @ 2018-10-22 08:14 enych 阅读(266) 评论(0) 推荐(0)
摘要:console.log(!"");//非空(true) console.log(!0);//非0(true) console.log(!" ");//非空格(false) console.log(!"x");//非字符串(false) console.log(!null);//(true) consol... 阅读全文
posted @ 2018-10-19 17:18 enych 阅读(617) 评论(0) 推荐(0)
摘要:var NoViods = document.getElementsByClassName("NoVoid"); for (var i = 0; i < NoViods.length; i++) { if (NoViods[i].value.trim() == "") { console.log(... 阅读全文
posted @ 2018-09-17 16:41 enych 阅读(195) 评论(0) 推荐(0)
摘要:// 键盘控制 var keyEvent = (function () { document.onkeydown = function (e) { if (e.keyCode === 38) { // up rotate alert("38"); ... 阅读全文
posted @ 2018-09-03 12:01 enych 阅读(7026) 评论(0) 推荐(0)
摘要:if (fileElem.files.length == 0) { alert("文件不能为空"); //layer.msg("文件不能为空!"); return false;} 阅读全文
posted @ 2018-08-15 18:55 enych 阅读(4273) 评论(1) 推荐(0)
摘要:C# 阅读全文
posted @ 2018-07-20 16:40 enych 阅读(291) 评论(0) 推荐(0)
摘要:layui.use('form', function () { var form = layui.form; form.on('select(Status)', function (data) { console.log(data); console.log(data.value); ... 阅读全文
posted @ 2018-07-17 09:27 enych 阅读(406) 评论(0) 推荐(0)
摘要:if (result.success) { var obj = JSON.parse(result.data); var sltObj = document.getElementById("selUser"); //获取select对象 for (va... 阅读全文
posted @ 2018-07-12 18:04 enych 阅读(10850) 评论(0) 推荐(0)
摘要:end begin 阅读全文
posted @ 2018-07-12 16:59 enych 阅读(7079) 评论(0) 推荐(0)
摘要:当value=""时候 自动添加选中样式 阅读全文
posted @ 2018-07-12 16:29 enych 阅读(264) 评论(0) 推荐(0)
摘要:使用框架遇到的坑 阅读全文
posted @ 2018-07-10 10:56 enych 阅读(1890) 评论(0) 推荐(0)
摘要://注意 调用方法,传过去一个form对象(layui版本过低, 坑。。。。) var city={}; //加入下拉框改变事件,执行搜索 //加入搜索后值不变 赋值方法 弄了半天 ..擦 触发dd事件 阅读全文
posted @ 2018-07-09 18:58 enych 阅读(2484) 评论(0) 推荐(0)
摘要:-- https://www.cnblogs.com/streamwang/p/8056301.html 阅读全文
posted @ 2018-06-29 17:12 enych 阅读(41120) 评论(0) 推荐(0)
摘要:Javascript阻止表单提交 Html 1. 2. Submit 3. Js 第一种方法 1. Js 第二种方法 1. 出处 http://www.dengzhr.com 阅读全文
posted @ 2018-06-29 17:10 enych 阅读(537) 评论(0) 推荐(0)
摘要:[{},{}] 正确[{},{},] 转json对象是报错 (直接写数组不报错)var Jsondata = $("#data")[0].defaultValue;var jsonobj = JSON.parse(Jsondata); layui.formSelects.data('select15', 'local', { ... 阅读全文
posted @ 2018-06-27 14:35 enych 阅读(571) 评论(0) 推荐(0)
摘要://导致样式改变 阅读全文
posted @ 2018-06-27 12:01 enych 阅读(1421) 评论(0) 推荐(0)
摘要:或者 阅读全文
posted @ 2018-06-27 08:45 enych 阅读(585) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-25 11:59 enych 阅读(339) 评论(0) 推荐(0)
摘要:在 //选中 lay(ul).find('li').on('click', function(){ //结尾处添加 if (options.done "year") { that.setValue(that.parse()).remove(); } <script src="laydate/layd 阅读全文
posted @ 2018-06-21 13:03 enych 阅读(1873) 评论(0) 推荐(0)