我想用参数调用 MVC 动作
location.href = '<%: Url.Action("mAction", "mControl", "new {IDs='+selectedIDs+'}) %>';
或者location.href = '<%: Url.Action("mAction", "mControl", "new {IDs=123}) %>';
我得到错误:
CS1010:常量换行
如何解决?
我想用参数调用 MVC 动作
location.href = '<%: Url.Action("mAction", "mControl", "new {IDs='+selectedIDs+'}) %>';
或者location.href = '<%: Url.Action("mAction", "mControl", "new {IDs=123}) %>';
我得到错误:
CS1010:常量换行
如何解决?