I passed a value (such as id) to the view page from other places. Now I want to get the id value on the view page from the controller method corresponding to the view page. How can I get it? ?
像蝸牛一樣爬行,堅(jiān)信總有一天我會有屬于自己的一片天!
Do you mean that AJAX cannot be submitted? In this case, the js may be written incorrectly. You can post the code for everyone to refer to.
If you are getting the value from the corresponding controller in the view, then you should get it via get
Add a form hidden field to pass the value.
<input?type="hidden"?name="a"?id="a"?value="123">