Is there a way to “hot swap” JavaScript code within the browser?

后端 未结 6 1406
南方客
南方客 2020-12-28 09:16

Is there any tool that enables you to \"hot swap\" JavaScript contents while executing a webpage?

I am looking for something similar to what HotSpot does for Java,

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 09:42

    I'm not familiar with HotSport, but if you're talking about dynamically loading JavaScript, yes, you can do that. MooTools allows you to do that, as do jQuery, Prototype, Dojo, and YUI, and I'm sure most of the other frameworks do as well. You can also do it with native JavaScript.

提交回复
热议问题