Velocity - How to avoid ParseErrorException when using jQuery?

后端 未结 5 497
闹比i
闹比i 2021-02-04 10:23

I\'m trying to add a jQuery post to some JavaScript on a web page. The entire page is built up of several Velocity templates. Everything has been fine until I\'ve tried to add t

5条回答
  •  没有蜡笔的小新
    2021-02-04 11:09

    I couldn't get it to work with any of the other fixes like escaping "$" in velocity unfortunately. I got it working by loading an external js-file with the jQuery instead of writing jQuery directly in velocity. Worked out for me at least, hope it helps someone :)

    /björn

提交回复
热议问题