openatx / atxserver2

Smart Phone Management. Reimplement of atx-server with Python
MIT License
1.35k stars 424 forks source link

代码问题,为什么html中的vue变量写法是{{!}},要加一个感叹号 #95

Closed HongFei1998 closed 2 years ago

HongFei1998 commented 2 years ago

如标题所提问,为什么atxserver中的vue写法如此特殊

codeskyblue commented 2 years ago

这个主要是 tornado的语法,参考 https://www.tornadoweb.org/en/stable/template.html#syntax-reference {{!foo}} 会被转义成 {{foo}} 供vue使用

HongFei1998 commented 2 years ago

好的收到,多谢解答