Browse Source

66409,ajax传输数据会导致#后面的数据丢失,对所传参数进行处理

guoyuanquan@mail.taiji.com.cn 3 weeks ago
parent
commit
61e7de10e0

+ 1 - 3
cn.com.taiji.system/src/main/resources/templates/thymeleaf/dcbcuser/userpsw_edit.html

@@ -128,12 +128,10 @@ body {
             	    if(check){
             	    	var oldpsw=$("#oldpassword").attr("value");
             	    	var newpsw=$("#password").attr("value");
-            	    	
-            	  
             	    		$.ajax({
             	    			async:false,
             	    			type:"post",
-            	    			url:"../user/updatepassword-"+oldpsw+"-"+newpsw,
+            	    			url:"../user/updatepassword-"+oldpsw+"-"+encodeURIComponent(newpsw),
             	    			contentType: "application/json;charset=utf-8",
             	    			dataType: 'json',
             	    			success:function(result){