The field is a field for user input. The field involves user input, which must be a control. Because of the previous experience in converting project word templates to online display input (not only is word converted to html, but also word bookmarks need to be extracted as key fields and keyword segments as user input, according to the user configuration to convert to text box, drop-down box, number, currency box, time and other extensible controls ). In this template design, I no longer consider server controls, because server controls generate a lot of html tags that are difficult to control. So I went crazy about it, and implemented it in full html + jQuery (jQuery validator is used for verification ). The process design will be summarized later.
Today, we only record that the last record of the user needs to be restored on the field modification interface of the control user settings. Because all my records are html + jQuery, we provide two solutions in the Framework Design: 1: based on the page object registration page initialization script, the control value is refilled. 2: Use StringTemplate to generate html output with backfilling value.
Is the use of the second solution, the StringTemplate for jQuery $ error parsing: the solution is summarized as follows:
Triggered by jQuery, you can use jQuery () instead of $ ().
StringTemplate, which can escape jQuery $: \ $.
I am sorry for the small amount of content and a lot of nonsense.