47. YUI on Node
npm install yui@stable
var YUI = require(‘yui’).YUI;
YUI().use(‘yql’, function() {
Y.YQL(‘select * from …’);
});
var Y = require(‘yui/yql’);
Y.YQL(‘select * from …’);
48. YUI目标平台
Internet
Explorer
6.0 7.0 8.0 9.0 10.0
Chrome † Latest stable
Firefox † Latest stable
Safari iOS 5.† iOS 6.† Latest stable (desktop)
WebKit Android
2.3.†
Android 4.†
Node.js* 0.8.† 0.10.†
Windows
(Native)
Windows 8 Apps
http://yuilibrary.com/yui/environments/