【问题标题】:Explain hex variable in the background.js of a chrome extension解释 chrome 扩展的 background.js 中的十六进制变量
【发布时间】:2021-10-05 03:21:44
【问题描述】:

var _0x2596 是什么意思?它是一个 background.js。为什么它现在起作用了?

var _0x2596 = ['https://animoto.com/account','https://serpstat.com/grouping/index/*','https://animoto.com/account/sign_out','https://www.semrush.com/organic_traffic_insights*','https://moz.com/messages/*','isProxy','https://www.skillshare.com/perks*','https://www.skillshare.com/workshops*','https://help.skillshare.com/*','https://serpstat.com/','https://.linkedin.com/learning/settings*','semrush.com','get','https://www.picmonkey.com/home/account*','userFirstExtensionData','https://*.semrush.com/projects/*','https://learn.picmonkey.com/*','https://ahrefs.com','author','https://support.canva.com/*','onBeforeRequest','https://analytics.moz.com/pro/manage-campaigns','https://*.keywordtool.io/search-*']

【问题讨论】:

  • What does the var _0x2596 mean? 只是一个名字不寻常的变量。它获取分配给它的字符串数组。 Why it's now working?我不确定你的意思。
  • 我可以亲自与您联系吗?我需要帮助
  • 这不是约会网站;)。随时提出问题或对问题/答案发表评论。

标签: javascript php google-chrome


【解决方案1】:

正如 Nicholas Tower 所说,它只是一个变量名。

虽然naming things 可能很难,但这段代码的作者使用了一个很好的技巧,使用了Unicode Character 0x259F

所以在这种情况下,变量名是▖

【讨论】:

    猜你喜欢
    • 2013-03-12
    • 1970-01-01
    • 2018-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多