我这需要newPage不等于空,要怎么改啊,大神们
Uncaught SyntaxError: Unexpected token !报这个错误
window.onload = initForm;
window.onunload = function(){};
function initForm(){
document.getElementById("newLocation").selectedIndex = 0;
document.getElementById("newLocation").onchange = jumppage;
}
function jumppage(){
var newLoc = document.getElementById("newLocation");
var newPage = newLoc.option[newLoc.selectedIndex].value;
if(newPage ! = ''){
window.location = newPage;
}
}
慕运维7130634
慕运维7130634
慕运维7130634
相关分类