.net mvc returns JsonResult, the front desk ajax is not received, it is displayed directly on the page, what is the reason

Look at the address bar and display the corresponding content directly. No problem ...
normal ajax cannot be like you, you are obviously a jump

1 The default action in the routing configuration and the action loaded by the controller method cannot be the same;

2ajax request data return json must be executed by a tag click onclick event to execute ajax

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/wugh8726254/p/12678766.html