alloyui的ajax请求例子

<aui:script>
function <portlet:namespace/>orgHTMsgMenu2_RecStatus(event) {
		//alert(event.rec_id);
		//alert(event.rec_status);
		var recId = event.rec_id;
		var rec_status = event.rec_status;
		var hrFlag = '<%=isHR%>';
		AUI().use('aui-io-request', function(A) {
			var myAjaxRequest=A.io.request('<%=ajaxURL%>',{
				dataType: 'json',
				method:'POST',
				data:{
					<portlet:namespace/>recId: recId,
					<portlet:namespace/>status: rec_status,
					<portlet:namespace/>hrFlag: hrFlag,
					<portlet:namespace/>cmd: 'getUser'
				},
				autoLoad:false,
				sync:false,
				on: {
				success:function(){
					var data=this.get('responseData');
					alert(data == null);
					Liferay.fire('changeHTMsgStatusMenu1_RecStatus', {
						rec_status : event.rec_status
					});
				}}
			});
			myAjaxRequest.start();
		});
	}
</aui:script>