Explorar o código

add exception message

ming %!s(int64=3) %!d(string=hai) anos
pai
achega
e2ff80ed01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      script_msg.js

+ 1 - 1
script_msg.js

@@ -33,7 +33,7 @@ $(".next").click(function(){
 	type: 'post',
 	data: objstr,
 	success: function(suc_data) {
-    alert(suc_data)
+    alert(suc_data.msg)
 	  },
 	//data:JSON.stringify({n1:"12",n2:"22"}),
 	error: function (error) {