hide javascript/jquery scripts from html page? [duplicate]
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: How do I hide javascript code in a webpage? [duplicate] 9 answers How do I hide my javascript/jquery scripts from html page (from view source on right click)? please give suggestion to achive this . Thanks. 回答1: Your best bet is to either immediately delete the script tags after the dom tree is loaded, or dynamically create the script tag in your javascript. Either way, if someone wants to use the Web developer tool or Firebug they will still see the javascript. If it is in the browser it will be