<frame src="" id="main" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="main" />
<a class="location_a" id="bas" href="" onclick="test()" target="main">基本信息</a>
var eids = id.split("=");
var eid = eids[1];
$(document).ready(function(){
$("#main").attr("src", "/aaa/bbb.html?params="+eid);
});
jquery通過frame的id進行賦值
var exhid = top.id;//獲取上一個頁面(index.html)的數據,id為上一個頁面js里面的值
var exh = exhid.split("=");
var eid = exh[1];//獲取從前台傳過來的id
function test(){
$("#bas").attr("href","/aaa/bbb.html?params="+eid);
}
jquery通過a標簽的id進行賦值
params為URL所需要傳遞的參數
使用之前需要引入jQuery文件
