|
|
//通过js为对象添加样式obj.addClass("classname");//通过js为对象移除样式obj.removeClass("classname");//获取当前页面urlwindow.location.href//判断字符包含关系str.indexOf("str")>0 //包含//每10分加载 1秒=1000毫秒 1000*60*10setTimeout("fun()", 600000);//获取父页面对象window.opener.document
//Javascript刷新页面的几种方法: history.go(0);location.reload(); location=location; location.assign(location); document.execCommand('Refresh'); window.navigate(location);location.replace(location);document.URL=location.href; |
|