页面组件
1. components方式
在当前页面使用import 标签名 from 组件地址,之后再components中调用标签名,或者直接再components中require(’组件地址‘).default
2. 全局引入
在组件中使用name注册组件,在其它页面直接以标签使用
3. module(’公共函数js‘)
在JBoot实例后 点module('函数名js 自动引入wrap/support下的文件')
4. mixins 直接在
使用方式:在当前页面 引入其他页面(其他页面有JBoot实例当前页面不再需要)
export default{
method:{
minxins:[路径]
}
}