I haven't used EasyUI for two years, or I haven't written code for a long time. Today I learned and used it with EasyUIAPI, and I found a few questions about whether the call is correct, tests showed that the original version was different. 1. the data-options attribute data-options is the most... syntaxHighlighter has not used EasyUI for two years, or has not written code for a long time. Today, I learned and used EasyUI APIs, And I found several problems with incorrect adjustments, tests showed that the original version was different. 1. The data-options attribute "data-options" is a special attribute added to the last two versions of jQuery Easyui. (The version is not detailed at the beginning, so we can verify that "1.3" is available ). With this attribute, the instantiation of easyui components can be completely written to html. [html] Window Content class = "easyui-window" zoukang http://blog.csdn.net/kang89 As shown above, you can easily define a window, and you need to write several lines of js like in previous versions, as shown in [javascript] Window Content lovekang89 $ ('# win '). window ({width: 600, height: 400, modal: true}); $ ('# win '). window ('close'); // close window for more information about data-options, see the article http://easyui.btboys.com/the-use-of-easyui-data-options.html 2. js and DOM? If the old version of the rendering sequence is loaded, js must be placed behind the DOM; otherwise, the element cannot be found (jquery will not report an error) [html]
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