07 2021 档案
摘要:async function test() { console.log('Hello') await sleep(1000) console.log('world!')} function sleep(ms) { return new Promise(resolve => setTimeout(re
阅读全文
摘要:<div class="click-box" :style="{'top':top+'px','left':left+'px'}" @click="clickBox">
阅读全文
摘要:ES6 : import对应的是export default 或 export require对应的是module.exports 或 exports export导出多个对象, export default只能导出一个对象 exports只能使用语法来向外暴露内部变量:如 exports.xxx
阅读全文
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>test</title> <link rel="stylesheet" type="text/css" href="css/test.css"> </head>
阅读全文
摘要: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
阅读全文
摘要:全局安装eslint 打开终端,运行npm install eslint -g全局安装ESLint。 vscode安装插件 vscode 扩展设置 依次点击 文件 > 首选项 > 设置 在settings.json 加入 //配置eslint保存时自动修复 "editor.codeActionsOn
阅读全文
摘要:npm --save --save-dev --production --development 区别 --save --save-dev 用于本地安装并且改变package.json 文件,--save生产依赖,--save-dev开发依赖 --production --development 用
阅读全文

浙公网安备 33010602011771号