摘要: 在main.js中 例子 阅读全文
posted @ 2019-07-28 15:30 绿谷 阅读(5784) 评论(0) 推荐(0) 编辑
摘要: VueAMap.initAMapApiLoader({ key: your key, plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEdit... 阅读全文
posted @ 2019-07-28 15:28 绿谷 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 1 export default { 2 components: { 3 "remote-js": { 4 render(createElement) { 5 return createElement("script", { 6 attrs: { type: "text/javascript", src: this.src ... 阅读全文
posted @ 2019-07-28 15:27 绿谷 阅读(4105) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-28 15:24 绿谷 阅读(8230) 评论(0) 推荐(0) 编辑
摘要: 安装 sass 使用所需要的依赖 在项目中使用 注意这里是lang="scss"不是"sass" 阅读全文
posted @ 2019-07-28 15:22 绿谷 阅读(5547) 评论(0) 推荐(0) 编辑
摘要: 在config/index.js中的build命令的配置有一个属性叫assetsPublicPath,它的值为‘/’。意思是根目录,这时会从index.html所在的硬盘的根目录下开始查找,自然无法找到。 解决办法:改为‘./’这时就不再是绝对路径的根目录了,而是改为了相对路径,同目录下进行查找。 阅读全文
posted @ 2019-07-28 15:17 绿谷 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: 原来在A页面设置了弹窗弹出时禁止页面滚动,弹窗消失恢复滚动 跳转按钮设置在在弹窗上,弹窗未消失就跳转,未能恢复滚动 阅读全文
posted @ 2019-07-28 15:14 绿谷 阅读(545) 评论(0) 推荐(0) 编辑
摘要: overflow:scroll 阅读全文
posted @ 2019-07-28 15:06 绿谷 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 改成 阅读全文
posted @ 2019-07-28 15:05 绿谷 阅读(3792) 评论(0) 推荐(0) 编辑
摘要: 外层加个固定宽高的div并设置属性overfow:hidden; 阅读全文
posted @ 2019-07-28 15:03 绿谷 阅读(897) 评论(0) 推荐(0) 编辑
摘要: overflow:auto; 阅读全文
posted @ 2019-07-28 15:01 绿谷 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: 1 使用scoped 2 在最外层添加class或者id用来区分 阅读全文
posted @ 2019-07-28 14:56 绿谷 阅读(1263) 评论(0) 推荐(1) 编辑
摘要: 在根目录index.html中加入 阅读全文
posted @ 2019-07-28 14:53 绿谷 阅读(255) 评论(0) 推荐(1) 编辑
摘要: 1 var preD = function (e) { 2 e.preventDefault() 3 } 4 export default { 5 data () { 6 return { 7 popupStatus: false 8 } 9 }, 10 watch: { // 监听data中弹层状态 11... 阅读全文
posted @ 2019-07-28 14:52 绿谷 阅读(4746) 评论(0) 推荐(0) 编辑
摘要: transform:scale(n) 阅读全文
posted @ 2019-07-28 14:48 绿谷 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: border-style: none; 阅读全文
posted @ 2019-07-28 14:48 绿谷 阅读(184) 评论(0) 推荐(0) 编辑
摘要: mongoimport --db db_demo --collection users --file 文件路径 阅读全文
posted @ 2019-07-28 14:43 绿谷 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 在config/index.js里配置proxyTable代理 阅读全文
posted @ 2019-07-28 14:41 绿谷 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: 可尝试在then()后加上catch() 阅读全文
posted @ 2019-07-28 14:37 绿谷 阅读(6006) 评论(0) 推荐(0) 编辑
摘要: 错误原因: 应当先导入vue.js再导入vue-resource.js 阅读全文
posted @ 2019-07-28 14:35 绿谷 阅读(691) 评论(0) 推荐(0) 编辑