javascript - What is the difference between js writing plug-ins using object-oriented programming and ordinary functions
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-06-13 09:23:21
0
3
1043

For example, if I write a tab, using oriented programming method is more complicated than ordinary function encapsulation, but it can also achieve code reuse. Why do so many people choose to use object-oriented programming plug-ins? What is the biggest difference between oriented programming and function calling?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(3)
刘奇

You’ll know after your project scales 100 times.

Function calls do not play a very good role in encapsulation.

学霸

The difference between object-oriented and process-oriented.

代言

Actually, I feel the same. ES6’s Class is just syntax sugar. You can also achieve the effect of a class by using function, but you must have object-oriented programming thinking. The most process-oriented programming can be played in microcontroller programming

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template