我试图获得这个完整的网址:https://mail.google.com/mail/u/0/? ui = 2# inbox/ 13047asdee8be4e1
通过使用:
var url = document.location.toString();
Run Code Online (Sandbox Code Playgroud)
但它只返回到https://mail.google.com/mail/u/0/?ui=2
我也尝试过其他方法,比如document.url,window.location,它仍然会吐出同样的东西.
我将如何将以下代码附加一次:
$('.faq_info').append(
'<ul>' +
'<li>Highlighted code for double html, body, and head tags means its invalid.</li>' +
'<li>Check highlighted iframe tags if it effects link placement.</li>' +
'<li>Highlighted charset means its not UTF8 or it is a bad charset.</li>' +
'<li>Highlighted symbols means that they are effecting the link.</li>' +
'<li>Check highlighted comments if it effects the link placement.</li>' +
'<li>If client url is highlighted it means something else in the source is causing it to be invalid.</li>' +
'<li>Check …Run Code Online (Sandbox Code Playgroud)