共 29 篇文章 |
|
安装过程遇到问题1、npm install 安装的时候: npm ERR! chromedriver@2.34.1 install: `node install.js` 解决方法:npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver参考:https://github.com/vuejs/vue-router/issues/261#issuecomment-218618180 阅38 转0 评0 公众公开 18-01-12 16:14 |
vue项目使用font.问题: 项目在本地run情况下显示正常,在build后font-awesome的css文件依赖的几个图标文件引用路径报错。在webpack.base.conf.js中关于几个文件的配置如下:$/, loader: ''''''''url-loader'''''''', options: { limit: 10000, name: utils.assetsPath('... 阅1171 转0 评0 公众公开 17-12-28 17:36 |
阅129 转0 评0 公众公开 17-11-13 16:30 |
<div class="questionList-content-list"> <ul> <li v-for="item in questionListData" @click="goDetail(item.id)"> <span>{{item.create_time}}</span> <span :class="''''''''level_'''''''' + item... 阅176 转0 评0 公众公开 17-10-31 21:08 |
Vue路由带参数。//类似get传参,通过URL传递参数this.$route.push({path:''''''''/xxx'''''''',params:{id:1}});//类似post传参。当匹配到一个路由时,参数值会被设置到 this.$route.params,可以在每个组件内使用。const router = new VueRouter({ routes: [ // 动态路径参... 阅1251 转2 评0 公众公开 17-10-19 11:41 |
vue数据变化,视图不更新参考:https://cn.vuejs.org/v2/guide/list.htmlhttps://cn.vuejs.org/v2/guide/reactivity.html.但是,可以使用 Vue.set(object, key, value) 方法向嵌套对象添加响应式属性。var vm = new Vue({ data: { userProfile: { name: ''''''''Anika''''''''... 阅1173 转0 评0 公众公开 17-10-19 10:19 |
var vm = new Vue({ data: { firstName: ''''''''Foo'''''''', lastName: ''''''''Bar'''''''', fullName: ''''''''Foo Bar'''''''' }})... 阅120 转0 评0 公众公开 17-10-17 15:17 |
-- Apply any bg-* class to to the icon to color it --> <span class="info-box-icon bg-red"><i class="fa fa-star-o"></i></span> <div class="info-box-content"> <span class="info-box-text">Likes</span> <span class="info-box-number... 阅4991 转1 评0 公众公开 17-10-17 15:13 |
阅123 转0 评0 公众公开 17-10-16 17:00 |