0
我有代碼打開瀏覽器的新選項卡中的鏈接,它的工作正常。通過窗口對象發送隱藏參數
window.open(
'actionName?param1=param1Value¶m2=param2Value,
'_blank' // <- This is what makes it open in a new window.
);
是否可以通過它發送隱藏參數?
我有代碼打開瀏覽器的新選項卡中的鏈接,它的工作正常。通過窗口對象發送隱藏參數
window.open(
'actionName?param1=param1Value¶m2=param2Value,
'_blank' // <- This is what makes it open in a new window.
);
是否可以通過它發送隱藏參數?
就節省窗口參考:
var win = window.open(url, name, params);
win['yourHiddenValues']={};
,你可以用它在打開的選項卡/窗口:
$(document).ready(x=> console.log(this['yourHiddenValues'])); //exists
看看這個http://stackoverflow.com/a/18264534/2417602 – vikscool
你用localStorage試過了嗎? – Jai
[將變量傳遞到沒有查詢字符串的新頁面]可能重複(http://stackoverflow.com/questions/18264489/passing-variables-to-a-new-page-without-query-string) – krillgar