我有以下网址
http://www.test.info/link/?url=http://www.site2.com
Run Code Online (Sandbox Code Playgroud)
如何在javascript中使用正则表达式获取url参数的值?
谢谢
我想知道我的jquery函数是否正确
<script>
window.blinker = setInterval(function(){
if(window.alerta){
$('a.cadastrotopo').css('color','#346698');
$('a.cadastrotopo').css('text-decoration','underline');
window.alerta=false;
}
else{
$('a.cadastrotopo').css('color','#000');
$('a.cadastrotopo').css('text-decoration','none');
window.alerta = true;
}
},500);
</script>
Run Code Online (Sandbox Code Playgroud)
工作正常,但我想知道我是否采取了正确的方式.
我谢谢你.