1.vuejs 的双向绑定理解

2.嵌套复杂对象的使用.

* 1. 分割都是,

   2. json 中分割都是;

   4. v-bind:value="param" 括号内的就是 vuejs 中的模型变量字段. 不是普通的字符串

3.   对比

<option v-for="option in options" value="{{option.value}}">
    {{ option.text }}
 </option>

 <option v-for="option in options" v-bind:value="option.value">
    {{ option.text }}
  </option>

https://jsfiddle.net/27rmqpvu/

 

{{}} 不能用于 参数中.

3. function 配置 模型.

   不能再 data 节点下.

date:

       selected: function(){ return "B"}
computed:

       selected: function(){ return "B"}

上面一个function(){ return "B"} 整串是支付串,不是返回值.

 

相关文章:

  • 2022-02-25
  • 2022-02-10
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案