mpFrame.js 470 B

123456789101112
  1. (function(global){
  2. var factory = {},startCache = null,startCacheFn = function(startFn){ startFn && startFn(startCache);};
  3. factory.start = function(startFn){
  4. typeof startCache == 'function' ? startCacheFn(startFn) : requirejs(['vue','iview','layer'],function(Vue,iView,layer){
  5. Vue.use(iView);
  6. window.iView = iView;
  7. (startCache = Vue) && startCacheFn(startFn);
  8. });
  9. };
  10. global.mpFrame = factory;
  11. })(this);