例如,假设您不得不呈现一个动态表单,并隐藏基于用户权限的输入字段。
For example, suppose you have to render a dynamic form and hide input fields based on user permissions.
此函数的另一个作用是根据其他表单字段值填充任何隐藏的INPUT元素。
Another use of this function is to populate any hidden INPUT elements based on other form field values.
然而,这种解决方案有些简陋,很像使用隐藏的表单字段在请求之间传递值。
This solution is rather crude, however, closely resembling the use of hidden form fields to pass along values between requests.
应用推荐