[英]What does 'export default {}' mean in JavaScript?
I have seen in a file that many things have been done but at the end it reads我在一个文件中看到很多事情已经完成,但最后它读取
$(document).on('click', '[data-ajax-click]', function(e) {
...
let prmData={};
...
}
export default {}
What does this do?这是做什么的? Exporting an empty object?
导出一个空的 object?
Yes it seems like the author of that file wants to export an empty object.是的,该文件的作者似乎想要导出一个空的 object。
Maybe it's just a placeholder and in the next future it will be a filled object exported.也许它只是一个占位符,在未来它将是一个填充的 object 导出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.