这段代码做了什么?
(我正在尝试构建一个Web应用程序分析系统,它必须发送javascript变量太php,然后,php将变量添加到数据库... 它是一个执行此操作的示例代码。我想“知道这段代码如何将javascript变量发送到php?” )
(function() {var no=0;var rand=Math.round(Math.random()*50000);var ref = escape(document.referrer) ; var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analyticstest.com/rx/?xmain2/statsave/9101/50d77b1jkfd24c5db5ef36b22ed8a";
u = u + "&height=" + screen.height + '&width=' + screen.width +'&now=12552222091&phprand=56bf3sdkjnf220912528&rand='+rand+ '&title=1' ;
u = u + "&ref="+ref;
document.write ("<iframe scrolling=no frameborder=0 allowtransparency='true' src='"+u+"' border=0 width='0' height='0' style=' display:none;visibility:hidden'></iframe>");