JavaScript: The Definitive Guide, Sixth Editio javaScript权威指南(第6版) pdf 文字版-文字版, javascript电子书, 和javascript 有关的电子书:

13.4.2 Graded Browser Support

In practice, many web developers today use client-side JavaScript frameworks such as jQuery (see Chapter 19 ) on all their web pages. One of the functions that makes these frameworks so indispensable is that they define a new client-side API and implement it compatibly for you across all browsers. In jQuery, for example, event handler registration is done with a method named bind(). If you adopt jQuery for all your web development, you’ll never need to think about the incompatibilities between addEventListener() and attachEvent(). See §13.7 for more on client-side frameworks.

13.4.2 Graded Browser Support

Graded browser support is a testing and QA technique pioneered and championed by Yahoo! that brings some sanity to the otherwise unmanageable proliferation of vendor/ version/OS browser variants. Briefly, graded browser support involves choosing “A-grade” browsers that receive full support and testing and identifying “C-grade” browsers that are not powerful enough. A-grade browsers get full-featured web pages, and C-grade browsers are served minimal HTML-only versions of the pages that require no JavaScript or CSS. Browsers that are not A-grade or C-grade are called X-grade: these are usually brand-new or particularly rare browsers. They are assumed to be capable and are served the full-featured web pages, but they are not officially supported or tested.

You can read more about Yahoo!’s system of graded browser support at http://developer . That web page also includes Yahoo!’s current list of A-grade and C-grade browsers (the list is updated quarterly). Even if you don’t adopt graded browser support techniques yourself, Yahoo!’s list of A-grade browsers is a useful way to determine which browsers are current and have significant market share.

友情链接It题库(| 版权归yishouce.com所有| 友链等可联系|粤ICP备16001685号-1