js 新手求解

gzw13999 2013-04-01 09:35:34
_cookie.setCookie("ts_uid", !0) 这句中的 !0是什么意思 这个参数是怎么来的。



完整Js

run: function() {
var e, t, n;
e = (new Date).getTime(),
_cookie.init(),
this.url.push(this.getDomainInfo()),
this.coverCookie(),
_cookie.setCookie("ssid"),
_cookie.save(),
this.url.unshift("http://pingfore." + this.getCookieSetDomain(_curDomain) + "/pingd?"),
this.url.push(this.getRefInfo(_params));
try {
navigator.cookieEnabled ? this.url.push("&pvid=" + _cookie.setCookie("pgv_pvid", !0)) : this.url.push("&pvid=NoCookie")
} catch(r) {
this.url.push("&pvid=NoCookie")
}
this.url.push(this.getMainEnvInfo()),
this.url.push(this.getExtendEnvInfo()),
_pgvVersion && (pgvGetColumn(), pgvGetTopic(), this.url.push("&column=" + Tcss.column + "&subject=" + Tcss.subject), tracert()),
this.url.push("&vs=" + _ver),
_cookie.setCookie("ts_uid", !0),
t = (new Date).getTime(),
_ext.push("tm=" + (t - e)),
_ch && _ext.push("ch=" + _ch),
_params.extParam ? n = _params.extParam + "|": n = "",
this.url.push("&ext=" + escape(n + _ext.join(";"))),
this.url.push("&hurlcn=" + escape(_hurlcn.join(";"))),
this.url.push("&rand=" + Math.round(Math.random() * 1e5)),
typeof _speedMark == "undefined" ? this.url.push("&reserved1=-1") : this.url.push("&reserved1=" + (new Date - _speedMark));
if (_params.pgUserType || _params.reserved2) {
var i = _params.pgUserType || _params.reserved2;
_tt.push("pu=" + escape(i.substring(0, 256)))
}
var s = this.getSud();
s && _tt.push("su=" + escape(s.substring(0, 256))),
this.url.push("&tt=" + escape(_tt.join(";"))),
this.sendInfo(this.url.join(""));
if (_crossDomain == 1) {
var o = this.getParameter("tcss_rp_dm", _d.URL);
if (o != Tcss.dm) {
var u = this.url.join("").replace(/\?dm=(.*?)\&/, "?dm=" + o + "&");
this.sendInfo(u)
}
}
_params.hot && (document.attachEvent ? document.attachEvent("onclick",
function(e) {
pgvWatchClick(e)
}) : document.addEventListener("click",
function(e) {
pgvWatchClick(e)
},
!1)),
_params.repeatApplay && _params.repeatApplay == "true" && typeof _rep != "undefined" && (_rep = 1),
this.loadScript(_speedTestUrl)
},
...全文
227 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
gzw13999 2013-04-01
  • 打赏
  • 举报
回复
简单问题。立即结贴。
jeff_jiang 2013-04-01
  • 打赏
  • 举报
回复
写死了是true
functionsub 2013-04-01
  • 打赏
  • 举报
回复
!0就是true的意思 !就是非 0一般情况下转换成布尔型是false 所以!0就是非false,可不就是true了 跟参数没啥关系。
ftiger 2013-04-01
  • 打赏
  • 举报
回复
0== false !0 == true 自己alter一下就知道了。
天际的海浪 2013-04-01
  • 打赏
  • 举报
回复
!0等于true
天际的海浪 2013-04-01
  • 打赏
  • 举报
回复
!0====true

87,991

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧