huipeng1144 发表于 2013-1-29 08:39:54

js 操作

//通过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;  
页: [1]
查看完整版本: js 操作