随笔分类 -  js

上一页 1 2 3 4 5 6 ··· 8 下一页
摘要:阮一峰 http://www.ruanyifeng.com/blog/2008/06/base64.html imweb : https://imweb.io/topic/5b8ea5327cd95ea86319358a 阅读全文
posted @ 2020-03-16 09:15 enych 阅读(273) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>files-h5</title> </head> <body> <input type="file" id="file" onchange="showPreview(this, ' 阅读全文
posted @ 2020-03-16 08:58 enych 阅读(701) 评论(0) 推荐(0)
摘要:<script> var obj ;(function() { var i = 0 var int = self.setInterval(function() { console.log(i++) obj = document.getElementById('AAA') if (obj) { win 阅读全文
posted @ 2020-03-06 11:27 enych 阅读(941) 评论(0) 推荐(0)
摘要:function test() { //输出html function out_innerHTML(objs) { for (var i = 0; i < objs.length; i++) { //console.log(t[i]); //console.log(t[i].getElementsB 阅读全文
posted @ 2020-03-04 21:48 enych 阅读(168) 评论(0) 推荐(0)
摘要://入口1 ################################################ /* 调用 layui.config({ version: "2.0.8", base: '/larryms/', //实际使用时,建议改成绝对路径 //mods:'index', righ 阅读全文
posted @ 2020-03-03 17:49 enych 阅读(1033) 评论(0) 推荐(0)
摘要:转自 ; https://blog.csdn.net/qq_19644471/article/details/81949680 阅读全文
posted @ 2020-03-03 16:31 enych 阅读(430) 评论(0) 推荐(0)
摘要:百度地图JavaScript API http://lbsyun.baidu.com/index.php?title=jspopular JavaScript API v2.0类参考 http://lbsyun.baidu.com/cms/jsapi/reference/jsapi_referenc 阅读全文
posted @ 2020-03-02 09:35 enych 阅读(203) 评论(0) 推荐(0)
摘要:table.on('tool(userMange)', function (obj) { 表示 会触发行内事件 //行内元素 <script type="text/html" id="opreateBar"> <a class="layui-btn layui-btn-danger layui-bt 阅读全文
posted @ 2020-02-18 14:52 enych 阅读(281) 评论(0) 推荐(0)
摘要:一、利用注册表文件将外部协议写入注册表 [HKEY_CLASSES_ROOT\PCTV] @="PCTVProtocol" "URL Protocol"="\"C:\\Program Files (x86)\\PCTV双模软终端_64位\\PCTV.exe\"" [HKEY_CLASSES_ROOT 阅读全文
posted @ 2020-01-15 11:04 enych 阅读(1587) 评论(0) 推荐(0)
摘要://鼠标滑动事件 // 开始按下手机的起点坐标 var startPoint = null; document.addEventListener("touchstart", function (e) { var e = e || window.event; startPoint = e.touche 阅读全文
posted @ 2020-01-10 08:47 enych 阅读(4208) 评论(0) 推荐(0)
摘要:<div id="div1" style="width: 300px;height: 300px;background-color: aquamarine; padding-top: 20px;"> <div style="width: 100px;height: 100px;background- 阅读全文
posted @ 2020-01-07 16:34 enych 阅读(1363) 评论(0) 推荐(0)
摘要:、 经发现 innerHTML: "<i class="larry-icon undefined" data-icon="undefined"></i><cite>添加的2级菜单2020/1/1 17:41:38</cite><i class="layui-icon layui-unselect l 阅读全文
posted @ 2020-01-01 20:31 enych 阅读(280) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2019-12-30 10:43 enych 阅读(2) 评论(0) 推荐(0)
摘要://获得窗口大小 function findDimensions() //函数:获取尺寸 { var point = {}; //获取窗口宽度 window.innerWidth && (point.width = window.innerWidth); window.innerHeight &&  阅读全文
posted @ 2019-12-23 10:34 enych 阅读(5241) 评论(0) 推荐(0)
摘要:<script> var user = document.getElementById("user"); var pwd = document.getElementById("pwd"); var user_erro = document.getElementById("user_erro"); v 阅读全文
posted @ 2019-11-20 18:07 enych 阅读(573) 评论(0) 推荐(0)
摘要:element_obj.NewTitle.value = json_obj.NewTitle.replace(/\&quot;/g, "\""); model.NewTitle = model.NewTitle.Replace("\"", "&quot;"); model.NewContent = 阅读全文
posted @ 2019-11-06 18:14 enych 阅读(6768) 评论(0) 推荐(0)
摘要:function loadJS(url, success) { var domScript = document.createElement('script'); domScript.src = url; success = success || function () {}; domScript. 阅读全文
posted @ 2019-11-06 14:57 enych 阅读(5784) 评论(0) 推荐(0)
摘要:var t = new Date().toString(); //t = "Thu Oct 31 2019 11:36:57 GMT+0800 (中国标准时间)" var t1 = new Date(); var data_arry =[]; var that = new Date(); data_ 阅读全文
posted @ 2019-10-31 11:53 enych 阅读(298) 评论(0) 推荐(0)
摘要:var url_s=["h/a","h/b","h/c"]; function post_test(url,callback) { //请求返回的数据 data callback(data); } //知道请求的数据大于4 终止请求. function get_data(data) { if (data != null) { data_s.push(data); } if (data_s.leng 阅读全文
posted @ 2019-10-28 11:15 enych 阅读(488) 评论(0) 推荐(0)
摘要:var numbers = [4, 9, 16, 25]; function myFunction(item, index) { console.log("item:" + item + "__index:" + index); } numbers.forEach(myFunction); console.log("_________________"); for (var i = 0; i < 阅读全文
posted @ 2019-10-25 11:36 enych 阅读(3418) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 8 下一页