aberver.html
734 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script src="jquery-2.0.3.js"></script>
<script>
(function(){
var o = $({}); // 转换为JQ对象
$.jianting = function(){
o.on.apply(o, arguments);
}
$.fabu = function(){
o.on.apply(o, arguments);
}
$.qingchu = function(){
o.on.apply(o, arguments);
}
$.jianting('/test/ls', function(e,a,b,c){
console.log(a + '||' + b + '||' + c +'||');
})
$.fabu('/test/ls', function(e,a,b,c){
console.log('OK');
})
})();
$.fabu('/test/ls', [1,2,3]);
</script>
</body>
</html>