我需要使用 javascript 代码将一个 html 页面的值传递给另一个 html javascript 函数。如何传递价值。提前致谢
view.cshtml:
b.on('click', function () {
document.location.href = + '?Id=' + sData; // need to pass the value
});
index.cshtml:
function getId(data) { // i need to get the data here
}