亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

求大神講解一下下面代碼什么意思

求大神講解一下下面代碼什么意思

momoyy123 2016-04-24 17:26:18
(function(global, factory) {? ? if (typeof define === 'function' && define.amd) {? ? ? ? define(function() {? ? ? ? ? ? return factory(global, global.document);? ? ? ? });? ? } else if (typeof module !== 'undefined' && module.exports) {? ? ? ? module.exports = factory(global, global.document);? ? } else {? ? ? ? global.Shake = factory(global, global.document);? ? }} (typeof window !== 'undefined' ? window : this, function (window, document) {})
查看完整描述

1 回答

?
花滿樓的小前端a

TA貢獻79條經驗 獲得超33個贊

使你的代碼同時兼容AMD/CMD規范,模塊化開發時很有用

查看完整回答
反對 回復 2016-05-11
  • 1 回答
  • 0 關注
  • 1540 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號