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

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

請問這段代碼中exports、module是什么意思?this, (function

請問這段代碼中exports、module是什么意思?this, (function

慕森卡 2019-02-28 14:34:16
(function (global, factory) {    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :        typeof define === 'function' && define.amd ? define(['exports'], factory) :            (factory((global.echarts = {})));}(this, (function (exports) {    'use strict';// (1) The code `if (__DEV__) ...` can be removed by build tool.// (2) If intend to use `__DEV__`, this module should be imported. Use a global// variable `__DEV__` may cause that miss the declaration (see #6535), or the// declaration is behind of the using position (for example in `Model.extent`,// And tools like rollup can not analysis the dependency if not import).    var dev;// In browser    if (typeof window !== 'undefined') {`請輸入代碼`        dev = window.__DEV__;    }// In node    else if (typeof global !== 'undefined') {        dev = global.__DEV__;    }    if (typeof dev === 'undefined') {        dev = true;    }    var __DEV__ = dev;}
查看完整描述

3 回答

?
慕的地8271018

TA貢獻1796條經驗 獲得超4個贊

umd兼容處理。
可以看umd部分

查看完整回答
反對 回復 2019-03-06
  • 3 回答
  • 0 關注
  • 2288 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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