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
}