【发布时间】:2019-10-18 23:13:30
【问题描述】:
我需要通过 url 查询字符串传递一个 html 消息。但我收到错误。我试过 encodeURIComponent() 、 encodeURI() 、 escape()
var uriMessage = encodeURIComponent("<p>This is my test message..</p>");
window.open("/controller/action?param=" + uriMessage, "_blank");
任何帮助将不胜感激。
【问题讨论】:
-
如果 uriMessage 变量请显示示例
-
@wasanga7,问题已更新
-
也许这会help
-
请发布错误。
-
遇到什么错误?
标签: jquery html vue.js query-string urlencode