[英]How JSnice do STATISTICAL RENAMING which renames Javascript variables?
I got a code 我有一个代码
function TRXsOqoPf(pOGsWUBqK) { /** @type {string} */ var tirYFOEZF = ""; /** @type {number} */ var RSkZLANHy = ~-1; var dubtZzLcb = pOGsWUBqK["length"]; for (;RSkZLANHy < dubtZzLcb;++RSkZLANHy) { var kwrxHKpMQ = pOGsWUBqK["charCodeAt"](RSkZLANHy); tirYFOEZF += kwrxHKpMQ >= 55296 ? pOGsWUBqK[RSkZLANHy] : String["fromCharCode"]((kwrxHKpMQ + 55296 - 44613) % 55296); } return tirYFOEZF; }
When I use jsnice.org with STATISTICAL RENAMING ? 当我使用jsnice.org和STATISTICAL RENAMING? I get
我明白了
/** * @param {Object} params * @return {?} */ function TRXsOqoPf(params) { /** @type {string} */ var optsData = ""; /** @type {number} */ var i = ~-1; var l = params["length"]; for (;i < l;++i) { var bc = params["charCodeAt"](i); optsData += bc >= 55296 ? params[i] : String["fromCharCode"]((bc + 55296 - 44613) % 55296); } return optsData; } ;
How can JSnice do that? JSnice怎么做到这一点? Is there any way for me to rename that variables by using php code?
有没有办法让我使用PHP代码重命名这些变量?
Long story short: JSNice is based on a probabilistic model trained on millions lines of JavaScript code. 简而言之: JSNice基于数百万行JavaScript代码训练的概率模型。
If you are interested in more details, please take a look at Nice2Predict website that interactively describes the process. 如果您对更多细节感兴趣,请查看以交互方式描述该过程的Nice2Predict网站。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.