Stringtemplate Meet the jquery conflict resolution _jquery

Source: Internet
Author: User
Tags html tags
field for the user's input is a field, the field involves the user's input, must be the control. With the previous project Word template transformed into online display input experience (not just converting word to HTML, you also need to extract word bookmarks as key fields, key fields as user input, converted to text boxes, drop-down boxes, numbers, currency boxes, time, and so on as user configuration can be extended controls. I no longer consider server controls in this template design because server controls generate a whole bunch of HTML tags that are hard to control. So it's completely insane, with a fully html+jquery implementation (and also a jquery validator for verification). The design of the process will be summarized later.

It's just a record today. In the Control User Settings Interface field modification interface needs to restore the user's last record, because I am all html+jquery, so in the framework design provides two scenarios: 1: The Page object to register the pages initialization script, backfill control values. 2: Use Stringtemplate to generate HTML output with backfill values.

Is the use of the second scenario, with Stringtemplate for jquery$ Error Resolution: The solution is summarized as follows:

From the jquery trigger, you can use jquery () instead of $ ().
Stringtemplate This can make jquery $ escape: \$.
Little content, a lot of nonsense, network forgive me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.