07 2021 档案

摘要:async function test() { console.log('Hello') await sleep(1000) console.log('world!')} function sleep(ms) { return new Promise(resolve => setTimeout(re 阅读全文
posted @ 2021-07-30 22:22 qcjdp 阅读(73) 评论(0) 推荐(0)
摘要:<div class="click-box" :style="{'top':top+'px','left':left+'px'}" @click="clickBox"> 阅读全文
posted @ 2021-07-27 16:52 qcjdp 阅读(995) 评论(0) 推荐(0)
摘要:ES6 : import对应的是export default 或 export require对应的是module.exports 或 exports export导出多个对象, export default只能导出一个对象 exports只能使用语法来向外暴露内部变量:如 exports.xxx  阅读全文
posted @ 2021-07-22 14:18 qcjdp 阅读(56) 评论(0) 推荐(0)
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>test</title> <link rel="stylesheet" type="text/css" href="css/test.css"> </head> 阅读全文
posted @ 2021-07-19 16:30 qcjdp 阅读(302) 评论(0) 推荐(0)
摘要:a继承b <script> function b(){ this.bname = "99"; } function a(){ this.aname = "5"; } a.prototype = new b(); a.prototype.cname = "66"; var a = new a(); c 阅读全文
posted @ 2021-07-19 09:33 qcjdp 阅读(49) 评论(0) 推荐(0)
摘要:模板: {{sum}} Js: 阅读全文
posted @ 2021-07-15 15:03 qcjdp
摘要:全局安装eslint 打开终端,运行npm install eslint -g全局安装ESLint。 vscode安装插件 vscode 扩展设置 依次点击 文件 > 首选项 > 设置 在settings.json 加入 //配置eslint保存时自动修复 "editor.codeActionsOn 阅读全文
posted @ 2021-07-15 10:34 qcjdp 阅读(471) 评论(0) 推荐(0)
摘要:npm --save --save-dev --production --development 区别 --save --save-dev 用于本地安装并且改变package.json 文件,--save生产依赖,--save-dev开发依赖 --production --development 用 阅读全文
posted @ 2021-07-14 11:40 qcjdp 阅读(516) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2021-07-08 10:30 qcjdp

Bill

Jerry

Evil