wuxw7
2019-03-22 6f3c7d86d27dadcc5c2621120023ed65c6ccea3e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
    初始化vue 对象
    @param vc vue component对象
    @param vmOptions Vue参数
**/
(function(vc,vmOptions){
    console.log("vmOptions:",vmOptions);
    vc.component = new Vue(vmOptions);
})(window.vc,window.vc.vmOptions);
 
/**
 * vue对象 执行初始化方法
 */
(function(vc){
    vc.initEvent.forEach(function(eventMethod){
        eventMethod();
   });
   vc.initMethod.forEach(function(callback){
        callback();
   });
})(window.vc);