javascript - Problems with cooperating with background colleagues when modifying multiple options in a form.
phpcn_u1582
phpcn_u1582 2017-07-05 10:39:59
0
1
774

The scenario is to modify the records of a form, modify the multiple-selected items, and then save them. One way is to compare the modified selections with the pre-modified selections by the front-end itself, and determine which items are added and which items are deleted. , respectively passed to the background. One approach is that the front end always passes the currently selected item to the background every time it is modified, regardless of what it was before modification, and the background overwrites and updates it. Since I don’t understand the logic behind the scenes, I would like to ask you what your usual practices are like? What kind of plan is more reasonable?

phpcn_u1582
phpcn_u1582

reply all (1)
迷茫

It is more reasonable for the back-end to handle it. The front-end is responsible for submitting the user's wishes. From the perspective of data security and uniformity, even if you classify the front-end, if the back-end is rigorous, you still have to calculate it again to prevent situations that should not occur. Appears, the front-end categories can be displayed for users’ real-time reference

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!