Home  >  Q&A  >  body text

model accessor

It is not conducive to later maintenance to judge the status field between 0 and 1 in the template, so we need to use the model's accessor, right?

*ptr*ptr2040 days ago1131

reply all(1)I'll reply

  • 阿布塔

    阿布塔2019-05-08 10:28:46

    Yes, the getter is more troublesome. As long as you use it, as long as you use the model to call data, it will automatically be converted into key values ​​at any time. You need to pay attention to this! ! ! To get the real value of the field, you have to use the getData method. Add me on Q to study together. 327243872

    reply
    0
  • Cancelreply