上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 112 下一页
摘要: 所有执行完成后,回调 Promise.all([ new Promise(resolve => { setTimeout(() => { console.log('furong'); resolve({ name: 'furong', age: 12 }); }, 2000) }), new Pro 阅读全文
posted @ 2021-07-13 14:08 thomas_blog 阅读(74) 评论(0) 推荐(0) 编辑
摘要: new Promise((resolve) => { var a = 1; resolve(a); }).then((data) => { console.log(data); return data + 1; }).then((data) => { console.log(data); }) 阅读全文
posted @ 2021-07-13 13:44 thomas_blog 阅读(211) 评论(0) 推荐(0) 编辑
摘要: resolve new Promise((resolve, reject) => { setTimeout(() => { console.log('one'); }, 2000) resolve("resolve"); }).then((data) => { console.log(data); 阅读全文
posted @ 2021-07-13 12:24 thomas_blog 阅读(155) 评论(0) 推荐(0) 编辑
摘要: resolve: { extensions: ['.js', '.vue', '.json'], alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), } }, 使用 import HelloWorld from '@/compon 阅读全文
posted @ 2021-07-13 11:14 thomas_blog 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 匹配的组件会被缓存 <template> <div id="app"> <img src="./assets/logo.png"> <router-link to="/Quange">Quange</router-link> <router-link to="/Furong">Furong</rou 阅读全文
posted @ 2021-07-09 15:12 thomas_blog 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 被包含的组件保留状态,避免重新渲染 Furong.vue <template> <div id="Furong"> <p>{{msg}}</p> <p>{{userInfo}}</p> </div> </template> <script> export default { name: 'Furon 阅读全文
posted @ 2021-07-09 15:07 thomas_blog 阅读(40) 评论(0) 推荐(0) 编辑
摘要: main.js // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. im 阅读全文
posted @ 2021-07-09 14:32 thomas_blog 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Quange.vue <template> <div id="Quange"> <p>{{msg}}</p> <button type="button" @click="onClick">跳转</button> </div> </template> <script> export default { 阅读全文
posted @ 2021-07-08 17:35 thomas_blog 阅读(193) 评论(0) 推荐(0) 编辑
摘要: App.vue <template> <div id="app"> <img src="./assets/logo.png"> <router-link to="/Quange/" tag="button">Quange</router-link> <router-link :to="args">F 阅读全文
posted @ 2021-07-08 17:27 thomas_blog 阅读(155) 评论(0) 推荐(0) 编辑
摘要: export default new Router({ routes: [{ path: '/', name: 'HelloWorld', component: HelloWorld, children: [{ path: '/Furong/:id', name: 'Furong', compone 阅读全文
posted @ 2021-07-08 16:40 thomas_blog 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 112 下一页