控制器傳遞值查看
public ActionResult Booklist(string bookid) {
return View();
}
查看
// other codes
url: 'Index/Booklist',
method: 'POST',
success: function (a) {
var windows = window.open('Index/Booklist');
}
但它似乎調用dispose();
twice..the原因是它第一次調用return View();
和第二var windows = window.open('Admin/GenerateQRCode');
我需要將數據從控制器傳遞到sencha的JavaScript,並將它們傳遞給View ..這可能嗎?
https://開頭www.google.com/search?q=pass+data+from+controller+to+view+asp –
你究竟在做什麼? –
從控制器傳遞值以查看。但是,當這樣做時,這段代碼被調用兩次,因爲我可以看到它調用了我的'dispose();'方法。我試圖看看有什麼問題。 @MarkC。 – Developps