想问一下 JS 方法什么时候写在 methods 对象里面?
问题:
看到教程有些js方法
写在methods对象
里面,有一些写在外面。请问怎么区分呢?比如我有一个方法,我该写在methods里面还是外面呢?
推荐文章: