06 2020 档案

摘要:基本ztree插件使用 官网文档地址:http://www.treejs.cn/v3/main.php#_zTreeInfo 1.下载对应的ztree的js和css 在页面引入 <link rel="stylesheet" href="assets/ztree/css/zTreeStyle.css" 阅读全文
posted @ 2020-06-12 14:18 dropInInt 阅读(207) 评论(0) 推荐(0)
摘要:用途 设置全选的时候,子元素第一次设置attr('checked', true)页面是正常的 但是当取消全选第二次在设置attr('checked', true)时发现页面不生效 第一次写法 $('input[name="checkbox"]').attr('checked', true) 这个写法 阅读全文
posted @ 2020-06-10 16:01 dropInInt 阅读(339) 评论(0) 推荐(0)
摘要:事件驱动程序 创建main.js const events = require('events') // 创建eventEmitter const eventEmitter = new events.EventEmitter() //创建事件处理程序 const connectHandler = f 阅读全文
posted @ 2020-06-08 21:36 dropInInt 阅读(187) 评论(0) 推荐(0)
摘要:node.js回调函数 新建test.txt:内容如下 我是一个测试 新建main.js 同步示例 1 const fs = require('fs') 2 const data = fs.readFileSync('test.txt') 3 console.log(data.toString()) 阅读全文
posted @ 2020-06-08 15:57 dropInInt 阅读(122) 评论(0) 推荐(0)
摘要:安装node.js node.js创建应用 新建server.js 1 const http = require('http') 2 3 http.createServer((Request, Response) => { 4 Response.writeHead(200, { 5 'Content 阅读全文
posted @ 2020-06-08 14:36 dropInInt 阅读(151) 评论(0) 推荐(0)
摘要:在谷歌浏览器中,有时input标签会自动填充数据,如用户名密码等。。。 初始在网上查询 如果是type=text input标签添加autocomplete="off" 如果是type=password input标签添加autocomplete="new-password" 碰到的问题: 目前我有 阅读全文
posted @ 2020-06-03 15:02 dropInInt 阅读(499) 评论(0) 推荐(0)