今天遇到

出现这个错误vue.js:634 [Vue warn]: Error compiling template: invalid expression: Unexpected token的解决办法
如图的问题,

错误代码

出现这个错误vue.js:634 [Vue warn]: Error compiling template: invalid expression: Unexpected token的解决办法

直接上解决办法

出现这个错误vue.js:634 [Vue warn]: Error compiling template: invalid expression: Unexpected token的解决办法

出现这个错误的情况我遇到这几个vue.js:634 [Vue warn]: Error compiling template

1、在绑定多个class是中间用‘“;”分隔 ,应该用“,”

2、为class动态绑定对象,所以要用{},千万不要用 [ ],这是绑定数组时用的

相关文章:

  • 2021-11-12
  • 2021-04-04
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2021-06-27
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
  • 2021-09-05
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案