动态class:
| 1 | // 通过变量控制class:(列表和单个时有不同) | 
动态src:
| 1 | // 对于template里面动态图片:src需要使用默认的图片,需将该本地图片资源从assets移动外一级static中,使用./static/*.png即可 | 
输入框有则禁止输入
| 1 | document.querySelector('.phone').readOnly = !!this.model.phone | 
写法
除date、ready是()外,其余均带:1
2
3
4
5
6
7
8
9
10export default {
  data () {
    return Object.assign({}, {
    })
  },
  components: {},
  ready () {},
  computed : {},
  methods : {}   
}
拼接链接
| 1 | linkHref () { // 跳转地址 |