下面的代码是一个书签,它打开页im并将其插入到php查询中。
如何使下面的代码只插入im页的"domain.com“
不是“https://www”零件
loadWho=window.open('http:/'+'/www.example.com/test.php?domain='+window.location.href.replace('#',:var))
发布于 2015-02-25 03:10:43
使用window.location.hostname
var domain=window.location.hostname.replace("www.","")https://stackoverflow.com/questions/28710338
复制相似问题