[英]convert window.location to window.open having a link with variable
尝试在此链接上实现 target=blank 从:
window.location.href = "https://example.com/#nums=" + $("input[name=variable]").val();
并使用 window.open 生成此文件:
window.open("https://example.come/#nums=" + "$("input[name=variable]"), "_blank").val();
有什么建议可以让它发挥作用吗?
谢谢@tj Crowder,您的建议解决了这个问题
window.open("https://example.com/#nums=" + $("input[name=variable]").val(), "_blank");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.