Velocity - How to avoid ParseErrorException when using jQuery?

后端 未结 5 496
闹比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:12

    I think this is a bug in version 1.6.x, because it works fine in 1.7(If it did not, please tell me, I test it many times..), according to the reference, the $ takes effect only when it is followed by a-zA-Z. I want to try do debug what happened really, but the translation code is generated by Java CC tool, it is too hard to recognize the logic...

提交回复
热议问题