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? ?
清晨的那一抹阳光照耀在我的脸上2017-05-25 13:17:46
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.
PHP中文网2017-05-25 12:58:56
If you are getting the value from the corresponding controller in the view, then you should get it via get
PHP中文网2017-05-24 17:31:44
Add a form hidden field to pass the value.
<input type="hidden" name="a" id="a" value="123">