Created
May 5, 2016 10:11
-
-
Save l02162010/8f8d72f7ce03266d7f4e0a9b3a043914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var vieClick = $('#vieClick'); | |
var account = $('#account'); | |
var password = $('#password'); | |
var accountFile = $('#account').val(); | |
var passwordFile = $('#password').val(); | |
vieClick.click(function () { | |
viaing.show(); //出現驗證中 | |
console.log('QQ'+accountFile); | |
$.ajax('/user/register/stu',{ | |
method: 'POST', | |
data: {account:accountFile,password:passwordFile}, | |
error: function(jqXHR,textStatus,errorThrown) { | |
console.log(error); | |
}, | |
success: function(result){ | |
console.log(result); | |
console.log(accountFile); | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment