<script type="text/javascript" charset="utf-8">
mui.init();
function login() {
var inputs = document.getElementsByTagName('input');
var loginName = inputs[0].value;
var loginPassword = inputs[1].value;
var param = {
'loginName': loginName,
'loginPassword': loginPassword
}
mui.post(url, param, postSucc,'json');
}
var postSucc = function(result) {
console.log("success");
alert(result);
}
</script>
SunnyPaul (作者)
这是按钮的onclick事件
2015-04-28 10:10