We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//导出多个成员 exports.xxx =a exports.xx1=b exports.xx2=c
// 导出单个成员 module.exports="hello"
//导出多个成员 module.exports={ func:()=>{}, demo:"xxxx" }
下面代码是错误的 module.exports='hello' module.exports=function(){ return x+y }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
module.export s和 exports 都属于commonJS
用法
//导出多个成员
exports.xxx =a
exports.xx1=b
exports.xx2=c
// 导出单个成员
module.exports="hello"
//导出多个成员
module.exports={
func:()=>{},
demo:"xxxx"
}
下面代码是错误的
module.exports='hello'
module.exports=function(){ return x+y }
The text was updated successfully, but these errors were encountered: