<script type="text/javascript">
// 调用后台方法
$(document).ready(function() {
var userId=$("#hid").val();
$.ajax({
cache: "False",
type: "POST",
contentType: "application/json",
url: "../../test.aspx/GetWish",
dataType: 'json',
data: "{userId:'"+userId+"'}",
success: function(result) {
$.messager.lays(300, 60);
$.messager.show('提示信息', result.d, 10000);
}
});
});
</script>
// 调用后台方法
$(document).ready(function() {
var userId=$("#hid").val();
$.ajax({
cache: "False",
type: "POST",
contentType: "application/json",
url: "../../test.aspx/GetWish",
dataType: 'json',
data: "{userId:'"+userId+"'}",
success: function(result) {
$.messager.lays(300, 60);
$.messager.show('提示信息', result.d, 10000);
}
});
});
</script>