日期:2014-05-16 浏览次数:20427 次
<script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js"></script>
<script>
YUI().use("io-base", function(Y) {
var uri = "index.php?foo=bar";
function complete(id, o, args) {
var id = id;
var data = o.responseText; /*服务器响应的数据*/
var args = args[1];
};
Y.on('io:complete', complete, Y, ['lorem', 'ipsum']);
var request = Y.io(uri);
});
</script>