繁体   English   中英

Javascript与window.open链接

[英]Javascript linking with window.open

我正在尝试从我的php页面提供链接。 但是它显示了一个错误。 以下脚本正确吗? 有人可以帮我吗? 它是一个注释问题。 一些我没有正确放置注释的地方?

window.open('add_new_shipment.php?tender_id='+result["tender_id"]& 
    id='+result["id"], 'quotation', 'scrollbars=yes', 'menubar=no', 'status=no', 'width=800, height=600');

缺少+ '号和单引号

window.open('add_new_shipment.php?tender_id='+result["tender_id"] +'&id='+result["id"], 'quotation', 'scrollbars=yes', 'menubar=no', 'status=no', 'width=800, height=600');
                                                             ------^

var结果= 50; var id = 4;

window.open('add_new_shipment.php?tender_id ='+ result +'&'+'id ='+ id +',quotes,scrollbars = yes,菜单栏=否,状态=否,宽度= 800,高度= 600'); });

如果您在创建网址中使用php,请使用此脚本

window.open('add_new_shipment.php?tender_id =&id =,quotation,scrollbars = yes,menubar = no,status = no,width = 800,height = 600'); });

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM