How do traditional websites (without vue,react and other component frameworks) achieve component-based development? For example, how did JD.com and Ali achieve it?

lack of project experience, the company"s projects are based on the front-end framework of component-based ideas such as vue,react. How to achieve code reuse by using only html,js, jquery and other technologies?

Jan.16,2022

generally large companies have their own technical teams, a small number of whom are responsible for encapsulating frameworks, plug-in libraries, components, and so on, and then some developers use their own tools for business development.
Pure native direct development, which is common in individuals or small teams, is too inefficient to cope with ever-changing needs and mass production.
before I came into contact with the framework and using the library, my idea is to write common templates and data processing methods in a file, introduce file clone data where needed, and add data processing to the page after data processing .
half a year later, however, I completely abandoned this idea, because the current framework has implemented my idea, and it is more flexible than I thought.


JD.com has NervJS, Ali and eggjs,antd,dva


you can start from the background.
such as Laravel's blade @ component


pure jq development, handwritten component library, event-driven, template engine. That is, some of the ideas of the framework now. Compare exercise js basics, exercise code specification

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a632-2c214.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a632-2c214.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?