Home > front end >  After distal js function in the website HTML web page after save as, js function will be embedded in
After distal js function in the website HTML web page after save as, js function will be embedded in

Time:09-23

After distal js function in the website HTML web page after save as, js function will be embedded in the index. The HTML page, how to let js function is not embedded in the page? Or in js, or download to view the forbidden in the js

CodePudding user response:

Can you have the function that runs on the server side, to ban download to see?

CodePudding user response:

Js is run in the browser, introduced the can't prohibit others to see the source code, the best is to use some special means to let others look not to understand,

CodePudding user response:

refer to the second floor nian_cj response:
js is run in the browser, introduced the can't prohibit others to see the source code, the best is to use some special means to let others look not to understand,

Introduced is encrypted on the far side of js, but save to save the page after the js will appear in the index. The HTML embedded instead, still no encryption status

CodePudding user response:

In this way the introduction of js
 
<script>
Document. Write (' & lt; Script SRC="https://bbs.csdn.net/topics/a.js" onl oad="this. ParentNode. RemoveChild (this)" & gt; <\/script> ')
</script>
  • Related