大家讲道理2017-04-18 10:18:23
Console the value before uploading to the background to see if there is any change.
伊谢尔伦2017-04-18 10:18:23
What you mean is to use the value of the option you selected, and the first one will be selected by default. Have you changed the selected options?
You can get it directly
$('#type').val();
ringa_lee2017-04-18 10:18:23
I typed it exactly according to your code, and the local test did not show the bug in the question
It is recommended that the subject check whether other operations have changed the value of type.
F12 Open browser debugging, check whether the parameter type in the request sent is correct, and locate the bug in the front and backend