上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: https://www.cnblogs.com/chengxuyuanaa/p/13089296.html https://blog.csdn.net/weixin_34355559/article/details/87957751 阅读全文
posted @ 2020-08-11 17:30 灏月天染 阅读(98) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq15577969/article/details/89341735 官方api https://cn.eslint.org/docs/rules 阅读全文
posted @ 2020-06-18 14:43 灏月天染 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 通过代码示例来解释 export function t(){} import {t} from 't' export default function a(){} import a from 'a' 1.export导出对象,可以导出多个,export default只能导出一个 2.export 阅读全文
posted @ 2020-06-18 11:42 灏月天染 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1.npm install vue-i18n 2.在main.js入口文件 import i18n from './i18n/i18n'; new Vue({ i18n }) 3.创建国际化文件,中文和英文 import zhLocale from 'element-ui/lib/locale/la 阅读全文
posted @ 2020-06-15 19:33 灏月天染 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.安装npm http://nodejs.cn/download/(此情况win7报错) 用以下地址即可 https://nodejs.org/zh-cn/ 2.下载vue,可通过cnpm下载 npm install vue 3.下载npm install -g @vue/cli 4. vue u 阅读全文
posted @ 2020-06-15 13:44 灏月天染 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 解决方法:1、管理员身份运行PowerShell(命令提示符,来源于Linux的命令提示符也叫Shell)2、执行:set-ExecutionPolicy RemoteSigned (签名或运行这些脚本)结束。 阅读全文
posted @ 2020-06-15 10:04 灏月天染 阅读(4212) 评论(0) 推荐(0) 编辑
摘要: 1.定义一系列的算法 2.将这些算法封装起来 3.可以让它们相互替换 const EmployeeA = function(){}EmployeeA.prototype.calculate = function(salary){ return salary * 4;}const EmployeeB 阅读全文
posted @ 2020-05-28 21:05 灏月天染 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.vue的应用 vue的服务端渲染,通过创建沙箱以执行前端的bundle文件 在运行createBundleRenderer时候,允许配置runInNewContext为true和false时候,是否创建一个沙箱供vm使用 2.在vue模板表达式,用于计算时,只能访问全局变量的白名单,如Math和 阅读全文
posted @ 2020-05-18 10:08 灏月天染 阅读(5137) 评论(0) 推荐(0) 编辑
摘要: 1.display 弹性布局,设置justify-content和align-item flex-wrap:让元素在必要的时候,换行 2.表格中居中,td设置align="center" 设置行间距cellspacing 设置表格间距 cellpadding 阅读全文
posted @ 2020-05-14 19:28 灏月天染 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.prototype指向函数的原型对象 function Person(age){this.age = age} Person.prototype.name = 'williem' let p1 = new Person(); 每个js对象创建的时候,除nul外,都会与之关联另一个对象,这个对象就 阅读全文
posted @ 2020-05-12 14:32 灏月天染 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页