Skip to content

Instantly share code, notes, and snippets.

@l02162010
Created May 5, 2016 10:11
Show Gist options
  • Save l02162010/8f8d72f7ce03266d7f4e0a9b3a043914 to your computer and use it in GitHub Desktop.
Save l02162010/8f8d72f7ce03266d7f4e0a9b3a043914 to your computer and use it in GitHub Desktop.
$(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