码迷,mamicode.com
首页 > Web开发 > 详细

object_01.js

时间:2017-07-08 15:10:16      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:update   work   exp   use   exports   class   global   factory   logs   

;(function (root, factory) {
		    if (typeof define === ‘function‘ && define.amd) {
		        // AMD. Register as an anonymous module.
		        define(factory);
		    } else if (typeof module === ‘object‘ && module.exports) {
		        // Node. Does not work with strict CommonJS, but
		        // only CommonJS-like environments that support module.exports,
		        // like Node.
		        module.exports = factory();
		    } else {
		        // Browser globals (root is window)
		        root.Popper = factory();
		    }
		}(this, function () {

		    ‘use strict‘;

		    var root = window;

		    // default options
		    var DEFAULTS = {};
            
            function Popper () {}

            Popper.prototype.update = function() {}

            Popper.prototype.destroy = function() {  }

            return Popper;

		}));
		
        var p = new Popper();

  

object_01.js

标签:update   work   exp   use   exports   class   global   factory   logs   

原文地址:http://www.cnblogs.com/zhujiasheng/p/7136846.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!