开发者社区 问答 正文

@Url.Content("")中怎样添加变量?? 400 报错

@Url.Content("")中怎样添加变量?? 400 报错

window.open('@Url.Content("~/Home/Index?File="+"data")')

那么红色的是变量,为什么会出错.谢谢

展开
收起
爱吃鱼的程序员 2020-06-03 17:09:41 1029 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    window.open('@Url.Content("~/Home/Index?File= ")'+data+'')

    2020-06-03 20:43:24
    赞同 展开评论
问答标签:
问答地址: