在a.js中有如下代码: var a=require("./b.js"); console.log(name); 那么,在模块b.js中定义name时,以下代码正确的是
A.
var name="John";
B.
exports.name="John";
C.
global.name="John";
D.
module.exports.name="John";
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】Some students, parents and teachers in Shanghai were surveyed last month. According to the result of the survey, the generation gap (代沟) between students and parents as well as teachers is becoming wi...
【单选题】American public education has changed numbers of American parents and teachers are in recent years. One change is that increasing starting independent public schools【51】 charter schools (特许学校). In 199...
【单选题】Parents and teachers in Shaanxi are happy about the news_____ more students will be admitted to universities, ______ makes students happy as well.