UI binding render - how to check
生活随笔
收集整理的這篇文章主要介紹了
UI binding render - how to check
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Created by Jerry Wang, last modified on May 14, 2015
- getExternalValue
- bind
- binding
- getExternalValue
- PropertyBinding
- getValue
- oValue
- oType
- fnFormatter
- formatValue
如果xml view里某個(gè)control維護(hù)了binding path,但是runtime時(shí)field顯示為空,則可debug這個(gè)js file里的getExternalValue。
所有control最終顯示在ui上的value都會(huì)通過該方法計(jì)算出來。
line 75:raw value通過this.getValue返回
line77: 如果binding path還顯式地由application 定義了formatter,則調(diào)用formatter,將line 75的rawValue傳入
line 79, 80: 執(zhí)行formatter
一個(gè)formatter的執(zhí)行例子:
要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的UI binding render - how to check的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 破天荒合作,网易 UU 加速器上架腾讯
- 下一篇: How to deal with err