Also do the front-end UI, why someone took a little effort, you can do it? And some people are trying to do their best, still wrong? We can look at a few stories first.
Story 1: A crow can eat a walnut with a clever force
There is a walnut-rich village, every year in late autumn early winter, flocks of crows will always come here, to the orchard to pick up those who were left by the fruit farmers.
Although the walnut kernel is delicious, but the shell is so hard, how can the crow eat it? The original Crow first picked up the walnut, and then flew high on the branches, and then the walnut fell down, the walnut fell to the hard ground, was smashed, so the crow got the delicious walnut kernel.
However, let the walnut fall from the high altitude, the probability of walnut shell rupture is very low, many times, crows are looking and sigh. However, the failure did not overwhelm the crow, and soon after, they invented a more effective method: Our village is surrounded by a road, the past many cars. The crow smashed the walnut on the road and the wheel easily crushed the walnut. So, the crow wait for the car past, quickly landed, tasting food.
Shintian, understand the characteristics of their own environment, and the integration of the next high-quality resources, you can make their own multiplier , the crow just take the walnut to the road, you can easily enjoy the walnut. Borrowing force, not only confined to people, but also to the environment "borrow" power.
Story two: By the skillful force, the four two dials the heavy
The British Library of England is a famous library in the world, with a very rich collection of books. Once, the library to move, that is, from the old museum to move to the new library, the results of a calculation, the removal fee to millions of, there is no such a lot of money. What to do? Someone gave a note to the curator.
The library has advertised an advertisement in the newspaper: from now on, every citizen can borrow 10 books from the British Library for free. As a result, many people flocked to excuse me the library books in a few days. The book is lent out, why still? Let's get back to the new building. In this way, the library borrowed the power of everyone to move home.
You must also imagine the British Library as "four or two". If you can find your own "42 Power" (book), and Dare to use the "42" (free borrowing), all is not a problem. Giving, and sometimes also a borrowing force. The fastest way to succeed is to seek the help of successful people and work together with each other to accomplish this. Perfect mutual aid and cooperation can never be neglected. Success is not how much you can do, but how many people you can borrow to do!
Many of the front-end friends often have a lot of doubts in this regard, in the selection framework, will also put forward a lot of ideas, such as: The components are rich, they do not add enough to use ; 2. Compatibility is better, preferably IE8 above can be compatible, expand convenience point, want to increase can increase; performance can be better, good interface, support replacement skin, support window widget, support flow layout ...
In fact, these are not problems, and do not need you to study a one! It's just that there are a few things to consider carefully when choosing the right framework for you:
First, clever borrowing power. For example, is the framework sufficiently popular and sustainable to have a rich documentation? The more popular, the more people you use, the more resources you have, and the more ways you can communicate. The less likely you are to be discarded, the more comfortable you can use the framework. A good framework needs to be constantly updated and adapted to the current technology, especially the mobile side. If a framework is not practiced in the actual project, you can take it practiced hand, but if you want to use a specific project, you still find a more mature framework. At present, tiny front-end framework, has a large fan base, more and more users are welcome. During the learning phase, a comprehensive document helps us to do more with less.
Second, to borrow the clever force. A common framework can make development easier than a special framework. In particular, what is the degree of personalization? In most cases, choosing the smallest style makes customizing easier, and adding new CSS is easier and more efficient than overwriting the original style. Of course, if you're still not sure if the framework is right for you, you can find one or two components in your project from a different project. For example, the TINYUI framework can provide a complete master page frame, provide full page switching and Ajax local refresh support, provide a rich menu insertion point, provide a variety of skin, provide rich interface element customization, provide package of UI components, provide macro encapsulation, use without care about the implementation; Provide streaming layout , it also has a good presentation on the mobile phone, can solve the dependency between UI component packages, and can solve the problems of CSS merging and JS merging and its compression ... Such a synthesis should also be helpful.
taking Tinyui as an example, after several versions of the development, has been basically perfect. Mature technology, active team, is actually to help you to borrow power, borrow skillfully, analyze the demo address:http://www.tinygroup.org/tinyuiweb/, you can quickly find the right front-end elements. If you need to know more about the principle, you can also get the relevant code quickly through the source repository:http://git.oschina.net/tinyframework/TinyUiEnterprise.
Or that sentence, skillfully borrow power, borrow clever power! Participation, is not a progress?
Welcome to the Open source technology community: http://bbs.tinygroup.org . The Code and framework information in this example will be shared in the community. "Self-write framework" member QQ Group: 228977971, Hands-on, understand the secrets of the Open source framework! Or click Join QQ Group:Http://jq.qq.com/?_wv=1027&k=d0myfX
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
"Open source Framework those things 21": clever borrowing power and borrowing skillfully