开发者

jquery delete source code from a page on load?

Is there a way to delete 开发者_如何学编程source code from a page using jquery (when the document loads, when an event is triggered, etc.)? I'm not thinking of the .remove() or .hide() methods; I'd like to actually delete the code from the page.


No, what is sent to the client is sent to the client. Changing the DOM does not change the html sent from the server.


No, because the source code is rendered by the web browser, so unless you plan on deleting the code you send to the client (which seems counter-productive) you will not be able to hide the source code.

However, there are steps you can take to obfuscate the code so that it is more difficult for people to read and understand, but for anyone determined this would only be a small set-back and not an actual hindrance.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜