function window(){ //函数名为window。网页打不开 window.open("","_blank","width=600,height=400"); }
function test(){ //函数名为test。网页打得开 window.open("","_blank","width=600,height=400"); }
Why can’t the web page be opened when the function name is window? -PHP Chinese website Q&A-Why can’t the web page be opened when the function name is window? -PHP Chinese website Q&A
Please watch and learn.
window不能用作函数名,window为JS关键字。
可以在后面多加个字母来避免,比如windower。
Why can’t the web page be opened when the function name is window? -PHP Chinese website Q&A-Why can’t the web page be opened when the function name is window? -PHP Chinese website Q&A
Please watch and learn.
window不能用作函数名,window为JS关键字。
可以在后面多加个字母来避免,比如windower。