Knockout.js - javascript function on data-bind

后端 未结 5 1475
天命终不由人
天命终不由人 2021-02-12 12:38

Is there a way i can call JavaScript function on data-bind like this:

         


        
5条回答
  •  感动是毒
    2021-02-12 12:52

    I had a similar problem trying to calculate table cell entries. What worked for me was including 'MySomeFunction' in my data model, and then data-binding my table cells as:

    
    

提交回复
热议问题