How do I hide javascript code in a webpage?

前端 未结 11 809
时光取名叫无心
时光取名叫无心 2020-11-22 17:17

Is it possible to hide the Javascript code from the html of a webpage, when the source code is viewed through the browsers View Source feature?

I know it is possibl

11条回答
  •  温柔的废话
    2020-11-22 17:57

    Put your JavaScript into separate .js file and use bundling & minification to obscure the code.

    http://www.sitepoint.com/bundling-asp-net/

提交回复
热议问题