1,npm install vuex --save 2,在src下新建vuex文件夹,新建store.js文件; store.js 3,在main.js下,创建和挂载根实例 4,在components--common--side_nav.vue下(导航所在的组件) 添加变量和改变方法 5,在其他组件 ...
分类:
其他好文 时间:
2018-01-17 13:44:29
阅读次数:
844
1. 布局框架: Bootstrap: http://getbootstrap.com/ Foundation: http://foundation.zurb.com/ Uikit: http://www.getuikit.com/ Web Components:http://css-tricks. ...
分类:
其他好文 时间:
2018-01-17 00:50:02
阅读次数:
186
摘要:代码复用一直是软件开发中长期存在的问题,每个开发者都想要再次使用之前写好的代码,又担心引入这段代码后对现有的程序产生影响。现在web Components的出现提供了一种新的思路,可以自定义tag标签,并拥有自身的模板,样式和交互。Vue.js提供了自己的组件系统,支持自定义tag元素和原生H ...
分类:
Web程序 时间:
2018-01-10 23:50:35
阅读次数:
250
摘要:The Java Message Service (JMS) API is a messaging standard that allows application components based on the Java Platform Enterprise Edition (Java E ...
分类:
其他好文 时间:
2018-01-10 11:41:06
阅读次数:
134
assets 是网站的静态资源 components是所有的组件 router-index 是专门配置路由的 app.vue文件是入口文件,也就是头部和尾部都在这个页面实现 main.js 主要是引入我们需要的一些依赖文件,然后new Vue() kits 里面放入一些公共的js文件,例如我们的aj ...
分类:
其他好文 时间:
2018-01-06 23:26:30
阅读次数:
513
Shadow 阴影 The Shadow component adds a simple outline effect to graphic components such as Text or Image. It must be on the same GameObject as the grap ...
分类:
编程语言 时间:
2018-01-03 13:52:37
阅读次数:
325
导入自定义组件时出现了如下错误 跪求解决办法 解决方案1: 首先是检查下你的路径有没有错;其次是你import的时候加上.vue后缀试试(components/star/star.vue) 解决方法2: 是路径错误;改成(../star/star.vue),试试 ...
分类:
其他好文 时间:
2017-12-31 23:30:10
阅读次数:
270
一. ref使用在父组件上 父组件html: <information ref='information'></information> import information from './information' components:{information,bill,means}, 在父组件 ...
分类:
其他好文 时间:
2017-12-29 17:23:23
阅读次数:
139
1、Vue实例常用属性 (1)数据 data:Vue 实例的数据对象 components:Vue实例配置局部注册组件 (2)类方法computed:计算属性 watch:侦听属性 filters:过滤器 methods:Vue实例方法 render:渲染函数,创建虚拟DOM (3)生命周期crea ...
分类:
其他好文 时间:
2017-12-29 15:13:42
阅读次数:
178
If you hard-code a stream of props to target a specific prop, it becomes impossible to reuse that stream with any other components. Configuring your p ...
分类:
其他好文 时间:
2017-12-28 11:56:53
阅读次数:
138