js
努力努力再努力12138
勇往直前,不忘初心
展开
-
js deepClone实现考虑到对象, 数组, Date, 正则和函数
js deepClone实现考虑到对象, 数组, Date, 正则和函数 function deepClone(target) { const map = new WeakMap() function isObject(target) { return (typeof target === 'object' && target ) || typeof target === 'function' } function clone(da原创 2021-11-17 19:27:23 · 332 阅读 · 0 评论 -
VUE3.0 创建项目 简单易上手 小白 vue-cli
前提:已安装好nodejs,npm tips:安装nodejs后npm也就安装好了 可以通过命令检测版本来看是否已成功安装 1、打开cmd命令窗口,输入以下命令安装vue npm install -g @vue/cli 2、也许命令会显示手动安装某个模块,此时使用npm install '模块名’就可以搞定 3、新建一个文件夹,名为vue3 4、使用vscode或其他工具打开此文件夹 5、打开终端,输入vue create hello-vue3 创建名为hello-vue3的项目 6、如不需要路由,原创 2021-07-24 12:59:06 · 241 阅读 · 0 评论 -
vue3.0报错 You may use special comments to disable some warnings. Use // eslint-disable-next-line
vue3.0 报错 You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file. 找到package.json 找到此处的extneds 删除prettier 重新使用npm run serve运行项目 ...原创 2021-07-24 12:51:19 · 1332 阅读 · 0 评论 -
创建对象属性,方法
创建对象属性,方法 let person = { name : 'ning', age : 19, say : function() { return "hello world!"; } }; let person = {}; person.name = 'ning'; person.age = 19; person.say = function() { return "hello world!"; } let person = { nam原创 2021-05-13 23:28:40 · 114 阅读 · 0 评论