Pick some minor problems:
Declaring function-level variables without var is a bad habit
If(eValue && eValue != "undefined" && eValue != "null") This sentence is inappropriate
The situation where arrays are included in json is not considered carefully
If there are multiple names in the same element in the form, it is not considered carefully
Multiple choice selection situation is not considered carefully
checkbox radiobox
Disabled and readonly situations are not well considered
What is the strategy when an element has no name? If it doesn't have name, it won't be processed. Or if there is no name, it will be id?? Finally, give a parameter selection
Summarize:
Functions written by lz are not suitable for use in practice
Haha, I finally saw someone who had the same idea as me (I haven't discovered it before).
However, this idea can actually be extended, and I have already extended it. That is:
Since you want to get JSON data, it must be related to form? Do you have to get it from form?
Of course not. So I wrote an extension based on jQuery
Previous page123Next pageRead the full text