search

Home  >  Q&A  >  body text

javascript - js method calling, method self-tuning, rewriting

How to call the toString method? ? ?
Ask God for answers

过去多啦不再A梦过去多啦不再A梦2804 days ago547

reply all(4)I'll reply

  • 高洛峰

    高洛峰2017-05-19 10:11:59

    1. 

    2.

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-19 10:11:59

    Override toString on function prototype

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:11:59

    fun is a method, but it is also an object.

    You can try:
    fun.a = 123;
    console.log(fun.a);

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:11:59

    reply
    0
  • Cancelreply