object_01.js
2021-06-30 12:04
标签:update work exp use exports class global factory logs object_01.js 标签:update work exp use exports class global factory logs 原文地址:http://www.cnblogs.com/zhujiasheng/p/7136846.html;(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();
上一篇:Vue.js入学教程
下一篇:js特效——自动滚动