厦门酒店团购网站建设,dw网页制作素材下载,做视频网站怎么挣钱,h5网站开发多少钱location.search是从当前URL的?号开始的字符串 如:http://www.51js.com/viewthread.php?tid22720 它的search就是?tid22720 通过这个函数就可以轻易取到连接后面带的参数#xff0c;这个可用户父窗口向子窗口传递参数 eg#xff1a; Java代码#xff1a; function openTa…location.search是从当前URL的?号开始的字符串 如:http://www.51js.com/viewthread.php?tid22720 它的search就是?tid22720 通过这个函数就可以轻易取到连接后面带的参数这个可用户父窗口向子窗口传递参数 eg Java代码 function openTable(id){ var feathersstatusno,width650px,height670px,top0px,menubarno,resizableno,scrollbarsyes,toolbarno,channelmodeno; var openWin window.open(allInfo.html?id,new Date().getTime(),declare,feathers); openWin.focus(); } function openTable(id){ var feathersstatusno,width650px,height670px,top0px,menubarno,resizableno,scrollbarsyes,toolbarno,channelmodeno; var openWin window.open(allInfo.html?id,new Date().getTime(),declare,feathers); openWin.focus(); } 在allInfo.html页面中如果我们要获取id的值的话可以这样获得 Java代码 script typetext/javascript var params window.location.search;//params:?id,date var arr params.substring(1).split(,); var id arr[0]; /script