Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 jquery 中的输入名称将文本框值从一页获取到另一页。
$('input[name$="testName"]').val("@Model.Value")
上面这段代码在另一个页面上不起作用,请任何人帮助我。
您必须在查询字符串中传递值,否则您无法直接访问。
您可以将其保存到参数或将其保存到隐藏字段。但是你不能直接访问它。