![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
闭曈彤
这个作者很懒,什么都没留下…
展开
-
vue花括号数据绑定不成功的问题
html> head> meta charset="utf-8" /> title>title> head> script src="js/vue.js" type="text/javascript" charset="utf-8">script> script src="js/main.js" type="text/javascri原创 2018-01-19 23:51:31 · 3521 阅读 · 4 评论 -
linkActiveClass:'active'设置激活类名无效的原因
vue-router欲设置 链接激活时默认使用的 CSS 类名,用到linkActiveClass来配置。 1. 在配置路由的js里,const routes=[ {path:'/goods',component:goods}, {path:'/ratings',component:ratings}, {path:'/seller',component:seller}]let rou原创 2018-02-19 23:19:30 · 3200 阅读 · 0 评论 -
高德地图添加点击事件实例(vue)
基本使用方法: 先把map对象new出来,传入参数为html里的div idvar map=new AMap.Map('container');然后就可以使用map对象了。map,覆盖物等常用的类,官方推荐用on方法绑定,如下代码绑定了一个mouseover事件,鼠标进入时会弹出alert: map.on('mouseover',function () { ...原创 2018-04-13 15:50:45 · 20439 阅读 · 0 评论 -
Module build failed: Error: Failed to find '~styles/common.css' 在stylus里无法引入css文件的解决方法
先贴报错信息:Module build failed: Error: Failed to find ‘~styles/border.css’in [C:\代码\university for the aged\user\src\pages\tips]at resolveModule.catch.catch (C:\代码\university for the aged\user\node_m...原创 2019-05-13 10:47:02 · 8076 阅读 · 0 评论 -
vue element-ui Radio单选框默认值选不中的原因:混用字符和数字
先贴灵感来源:添加链接描述**问题描述:**在写编辑信息弹窗时,性别的值一直不能根据v-model的值选中,但是用{{editForm.sex}}是能正确打印出单选框的label值的。以下是我的代码:模板:<el-radio-group v-model="editForm.sex"> <el-radio class="radio" :label=...原创 2019-06-25 22:12:26 · 25610 阅读 · 14 评论