level 2
<script type="text/javascript">
<!--使用ajax 判断密码是否正确 --!>
function checkPwd() {
var oldPwd = $("#oldPwd").val();
alert(oldPwd);
$.ajax({
url: "setPwd.aspx/checkOldPwd",
type: "Post",
data: { 'oldP': '123'},
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
alert(data.d);
},
error: function (err) {
alert(err);
}
})
}
</script>
2018年07月09日 07点07分
1
<!--使用ajax 判断密码是否正确 --!>
function checkPwd() {
var oldPwd = $("#oldPwd").val();
alert(oldPwd);
$.ajax({
url: "setPwd.aspx/checkOldPwd",
type: "Post",
data: { 'oldP': '123'},
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
alert(data.d);
},
error: function (err) {
alert(err);
}
})
}
</script>