摘要: 1.性能优化: Vue3使用了Proxy代理对象来实现响应式系统,相比Vue2的Object.defineProperty,Proxy有更好的性能。 Vue3对虚拟DOM进行了优化,使用了静态标记和补丁算法,减少了不必要的DOM操作,提高了渲染性能。 Vue3的编译器进行了重写,生成的代码更加高效, 阅读全文
posted @ 2023-10-30 17:31 你觉得呢! 阅读(114) 评论(0) 推荐(0)
摘要: ES5 新增 严格模式(Strict Mode):ES5引入了严格模式,通过在脚本或函数的开头添加"use strict";来启用。严格模式提供了更严格的语法和错误检查,帮助开发者编写更安全、更规范的代码。 JSON对象支持:ES5将JSON(JavaScript Object Notation)作 阅读全文
posted @ 2023-10-30 17:19 你觉得呢! 阅读(52) 评论(0) 推荐(0)
摘要: 1,设置->搜索vetur.format.defaultFormatter.html-> 选择js-beautify-html 2.打开文件 首选项 设置 点击右上角的文档图标 随便找个地儿加上这段代码 "vetur.format.defaultFormatterOptions": { "js-be 阅读全文
posted @ 2023-10-30 16:32 你觉得呢! 阅读(77) 评论(0) 推荐(0)
摘要: function formatPrice ( value){ newValue = ("" + value) // 第一步:转成字符串 .replace(/[^\d^\.]+/g, "") // 第二步:把不是数字,不是小数点的过滤掉 .replace(/^0+(\d)/, "$1") // 第三步 阅读全文
posted @ 2023-10-30 16:28 你觉得呢! 阅读(109) 评论(0) 推荐(0)
摘要: npm install yarn npm install taco --save yarn add taco npm uninstall taco --save yarn remove taco npm install taco --save-dev yarn add taco --dev npm 阅读全文
posted @ 2023-07-31 16:22 你觉得呢! 阅读(14) 评论(0) 推荐(0)
摘要: 代码如下: <template> <body> <el-col span="12" :push="7"> <!-- auto-upload为是否自动加载;action为图片要上传到的地址,这里随便填一个,因为暂时不用 --> <!-- class为动态样式选择,是实现上传图片后上传框消失的关键 -- 阅读全文
posted @ 2023-07-31 16:21 你觉得呢! 阅读(1204) 评论(0) 推荐(0)