第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

nodejs模塊源碼require問題

nodejs模塊源碼require問題

這是nodejs源碼module.js的代碼 https://github.com/nodejs/nod...const NativeModule = require('native_module');const util = require('util');const internalModule = require('internal/module');const vm = require('vm');const assert = require('assert').ok;const fs = require('fs');const internalFS = require('internal/fs');這是require的源碼Module.prototype.require = function(path) {assert(path, 'missing path');assert(typeof path === 'string', 'path must be a string');return Module._load(path, this, / isMain / false);};module.js是實現(xiàn)require函數(shù)的,為什么第一行就調(diào)用了require,require函數(shù)不是還沒實現(xiàn)嗎?沒想明白,感覺有點用結(jié)果去實現(xiàn)結(jié)果的意思,新人求指教。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 433 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號