随笔分类 -  前端开发

1 2 3 4 5 ··· 7 下一页
摘要:需求: 有字符串"name:lxh;job:developer;",希望转成[{name:'lxh'},job:'developer'}]形式 实现: var test = "name:lxh;job:developer;";// 测试串 var out = [];// 需要输出的结果 var te 阅读全文
posted @ 2021-02-09 15:24 lvlin241 阅读(263) 评论(0) 推荐(0)
摘要:参考 vue 父子组件的生命周期顺序 阅读全文
posted @ 2021-01-11 16:51 lvlin241
摘要:1. vue vux使用,$vux.confirm如何停止往下运行 参考:https://www.imooc.com/wenda/detail/534692 <template> </template> <script> export default { name: "test", method: 阅读全文
posted @ 2020-11-12 09:45 lvlin241 阅读(154) 评论(0) 推荐(0)
摘要:1. webpack中文网 阅读全文
posted @ 2020-09-28 16:51 lvlin241 阅读(56) 评论(0) 推荐(0)
摘要:参考: 1. vue项目安装vux(推荐) 2. 官网 <1> 手动配置webpack <2> 引用示例 阅读全文
posted @ 2020-09-28 16:06 lvlin241 阅读(211) 评论(0) 推荐(0)
摘要:1. 背景 有2个父子组件(父组件:HelloWorld,子组件: TestScope),父组件里面引用了子组件,希望在父组件中改变子组件的样式(注意:子组件中的样式使用了scope)。 <!--HelloWorld.vue--> <template> <div class="hello"> <h1 阅读全文
posted @ 2020-09-28 10:23 lvlin241 阅读(1129) 评论(0) 推荐(0)
摘要:config/index.js 属性 autoOpenBrowser 配置为true 阅读全文
posted @ 2020-09-27 17:28 lvlin241 阅读(2261) 评论(0) 推荐(0)
摘要:修改配置config/index.js // 引入 const ip = require('ip') // 配置IP host: ip.address() 阅读全文
posted @ 2020-09-27 17:26 lvlin241 阅读(972) 评论(0) 推荐(0)
摘要:1. 背景 在 VUE中,我们会使用axios来存取api ,但是axios 会使用到 ES6 的 Promise ,而IE会没有无法支持,因此我们要用babel-polyfill来将ES6的语法转到ES5。 2. 安裝 babel-polyfill npm install --save babel 阅读全文
posted @ 2020-09-27 15:45 lvlin241 阅读(531) 评论(0) 推荐(0)
摘要:1. 安装nodejs <1> 下载并安装nodejs nodejs下载 <2> 配置镜像库(国内一般配置为淘宝的) npm config set registry https://registry.npm.taobao.org npm config get registry // 查看本地镜像库地 阅读全文
posted @ 2020-09-27 14:36 lvlin241 阅读(114) 评论(0) 推荐(0)
摘要:1. watch 监听机制 针对当前组件中的初始值来进行判断的,即当进入页面执行created方法时,就会触发watch方法。 2. watch如何在初始化之后使用(即在created方法执行时,不调用watch里面的监听逻辑) 场景:要求首次进入页面时,不触发watch监听事件改变数据,当页面加载 阅读全文
posted @ 2020-09-17 15:57 lvlin241 阅读(739) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页