简体   繁体   English

JSnice如何进行重新命名Javascript变量的统计重命名?

[英]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.

相关问题 如何在JavaScript中对数组进行统计分类? - How to do statistical classification on an array in javascript? 在JavaScript中重命名变量 - Renaming variables in JavaScript 禁用Rails中的Javascript变量重命名 - Disabling Javascript variables renaming in Rails 在javascript中重命名对象键(变量) - Renaming object keys(variables) in javascript 如何使用Javascript中的变量进行算术运算? - How to do arithmetic with variables in Javascript? JavaScript 变量如何工作? - How do JavaScript variables work? 如何在javascript的标头上打印变量? - How to print variables which are on the header on javascript? 如何使用数据库中正在更改的新值更新javascript变量? - How do I update javascript variables with new values which are changing in my database? 如何将包含附加到 URL 的变量的 arrays 放入图像占位符中? JavaScript - How do I put arrays which consist of variables that are attached to URL's into image placeholders? JavaScript 如何使用外部Javascript库(如jQuery)重命名Google Closure样式表? - How do I use Google Closure Stylesheet renaming with an external Javascript Library such as jQuery?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM