【发布时间】:2020-07-29 17:41:12
【问题描述】:
我通过反复试验发现了以下内容。主要是错误。 所以现在是 Stopid Question Time™...
为什么 Javascript not 在调用不带参数的函数时会报错?你为什么想要那个?
something // call the function but forgot about the parameters
function something()
{
// some code here
alert("Working on it!");
}
【问题讨论】:
-
声明
something本身与声明7本身几乎相同。它什么也没做,但它不是错误。
标签: javascript function ecmascript-5