巴扎黑2017-04-17 13:51:36
What is popular is the single-page technology, but the single-page product itself is really not that popular. Otherwise, I would not be so entangled when I change jobs.
Ele.me actually uses some single pages, and Vue or Angular sites are also written using single page routines to some extent. There are also some internal React projects and single page technologies. I have only heard of jQuery. I didn’t go through the code. But let’s take a look at the specific business. The desktop version is a single page, which is relatively clear, but there is still a gap compared to large-scale applications like Teambition. Then looking at the mobile pages, most of them are embedded in the Ele.me App and WeChat. , or even pages in other webviews, these pages are often accessed from mobile networks, are extremely sensitive to size, and js performance is also a bottleneck. When the mobile Internet becomes more and more important, such small pages are obviously very important.
In addition to size and performance limitations, to some extent the single-page technology itself has some limitations. Ideally, a single-page application should be dynamically loaded based on routing, so as to ensure that it is not too difficult to open for the first time. It is slow. In the future, page jumps will directly load the content dynamically on the same page. However, this has very high requirements for the framework. In the new versions of Angular, React, and Vue, I have heard that the technology of "dynamic loading based on routing" is mentioned , but judging from experience, we have just started to provide experimental support, there are still many pitfalls, and the configuration is not easy.
In short, Web technology is still developing.
巴扎黑2017-04-17 13:51:36
Some mobile APPs have a webview shell, and SPA runs inside, so that iOS and Android can share code. This is very cost-effective for some small companies in their early stages of entrepreneurship.
ringa_lee2017-04-17 13:51:36
Single-page application js is large in size and takes long to load (poor user experience with poor network)
High performance requirements (poor user experience with old computers and mobile phones)
Poor support for old browsers (The older the browsers taken care of by larger companies, my classmates are at Alibaba (which is the Alibaba department of Alibaba Group), and their front-end compatibility requirement is IE5)
The web page is usually the fastest place to implement new features , your development based on the app model is not conducive to rapid iteration
Many users don’t like to use the return key (for example, Google used to default to the search page to jump to the results, but now it seems to have become the default to open a new page)
So if you want large companies to widely use single-page applications, it is completely wrong. Single-page applications are more suitable for new projects of small companies (a startup company's project using single-page applications will give people a very pioneering feeling), or like You said it, background management
天蓬老师2017-04-17 13:51:36
Personally, although single-page applications are very sharp, they are not particularly friendly to SEO
高洛峰2017-04-17 13:51:36
Misunderstanding, a system cannot be a single page. It is a combination of single page and multiple pages. The highly relevant ones are made into a single page and the user experience is good. The irrelevant ones are still multiple pages. A single page is too complicated. Split into multiple pages
伊谢尔伦2017-04-17 13:51:36
The few mobile projects I have led recently are all made with react, which is not bad. http://yt.59store.com has just launched a new version today