jquery 打开新网页

$(#_report).attr(src, index.phphomepdfviewviewer?filedata).show();可以替换为以下 1、带参数打开新窗口 $window.open("bdfenceb

$('#_report').attr('src', '/index.php/home/pdfview/viewer?file='+data).show();可以替换为以下

1、带参数打开新窗口

$window.open("/bdfence/bdfence-division/bdfence.html?vehicleId="+ id );


2、获取参数

var afterUrl = window.location.search.substring(1);(问号以后的字符串)

var afterEqual = afterUrl.substring(afterUrl.indexof('=')+1).toUpperCase();(等号以后的字符串,及你所要的参数)
 

发布者:admin,转转请注明出处:http://www.yc00.com/web/1742571183a4460445.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信