为什么在我的脚本中写入为什么会丢失名字。运营商当我包括这样javascript:为什么缺少名字后。操作员提示出现
this.switch = function(){
if (this.status == "enabled")
{
this.disable();
this.stop();
}
else
{
this.enable();
}
}
脚本的脚本是为了转移状态从启用已禁用
也许是因为'switch'是一个保留字 – 2010-12-13 14:08:35
尽管(至少在控制台)使用chrome – 2010-12-13 14:11:14
@Felix:和Firefox(也是控制台)。 – 2010-12-13 14:13:08