js模块化封装

Run Settings
LanguageJavaScript
Language Version
Run Command
let utils = require('./dio.js') utils.clog(1,'cn.pheker')
//IIFE (function(global,factory){ //CommonJS if(typeof exports==='object' && typeof module !== 'undefined'){ module.exports = factory(); //AMD }else if(typeof define === 'function' && define.amd){ define(factory); //不符合规范 }else{ global.myjs = factory(); } })(this,(function(){ //todos function uu(options){ this.init = function(options){ } } uu.clog = (...args)=>{ console.log(args); } return uu; }));
Editor Settings
Theme
Key bindings
Full width
Lines