上一页 1 ··· 3 4 5 6 7
摘要: 1.安装axios模块 import axios from 'axios'; //安装方法 npm install axios //或 bower install axios 2.引入模块 直接引用:<script src="https://unpkg.com/axios/dist/axios.mi 阅读全文
posted @ 2017-08-16 10:47 neo_o 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 在JavaScript ES6中,export与export default均可用于导出常量、函数、文件、模块等,你可以在其它文件或模块中通过import+(常量 | 函数 | 文件 | 模块)名的方式,将其导入,以便能够对其进行使用,但在一个文件或模块中,export、import可以有多个,ex 阅读全文
posted @ 2017-08-16 10:46 neo_o 阅读(269) 评论(0) 推荐(0) 编辑
摘要: const Login = resolve => require(['@/components/Login'], resolve) 注(当路由被访问的时候才加载这个组件) 阅读全文
posted @ 2017-08-16 10:44 neo_o 阅读(544) 评论(0) 推荐(0) 编辑
摘要: router.beforeEach((to, from, next) => { // console.log('to:' + to.path) if (to.path.startsWith('/login')) { window.sessionStorage.removeItem('access-u 阅读全文
posted @ 2017-08-16 10:43 neo_o 阅读(857) 评论(0) 推荐(0) 编辑
摘要: inportexcel: function() { //兼容ie10哦! require.ensure([], () => { const { export_json_to_excel } = require('../../vendor/Export2Excel'); //引入文件 const tH 阅读全文
posted @ 2017-08-16 10:37 neo_o 阅读(218) 评论(0) 推荐(0) 编辑
摘要: <input id="upload" type="file" @change="importfxx(this)" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/ 阅读全文
posted @ 2017-08-16 10:24 neo_o 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 标签属性href,使其指向空或不返回任何内容。如: <a href="javascript:void(0);" >点此无反应javascript:void(0)</a> <a href="javascript:;" >点此无反应javascript:</a> 标签事件onclick,阻止其默认行为。 阅读全文
posted @ 2017-07-10 16:55 neo_o 阅读(417) 评论(0) 推荐(0) 编辑
摘要: .bg{ background-size: cover;background-image:url(../assets/images/sunshine.png);background-repeat:no-repeat;background-position:center;background-atta 阅读全文
posted @ 2017-07-08 11:34 neo_o 阅读(318) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7

愿你的生活只有诗和远方