Integrate jQuery into a electron app

后端 未结 3 1418
臣服心动
臣服心动 2021-02-09 16:41

I\'m trying to add jquery functionality to a desktop app written in electron Using the electron-quick-start repo i\'m adding the downloaded jquery file to the main.html

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-09 17:26

    While using electron, some additional symbols are also inserted into DOM causing problems. So, you can use jquery as follow

    
    

    Notice the code inside "onload".

提交回复
热议问题