Sharing of common errors in JEasyUI
EasyUI Common Mistakes
1. Whether you implement components in HMTL form or code + HTML form, when setting attributes for components, you should pay attention to the type of attribute values
string: must be quoted
number: no unit, no quotes
boolean: no quotes
Code + HTML form to implement the component, the final There is no event after the attribute. Do not add a comma after the last attribute
For example:
$(“#rr”).cmpName({k1:v1,k2:v2}) Not allowed after v2 There is a comma
2. When calling the method provided by the component, pay attention to the format of the calling method
$(“#rr”).cmpName(“Method Name”);
3. When using datagrid to display data, note that the bound JSON format data must conform to the desired format
ROWS ": [
{Stunum: 001, Stuname: 'Tome', Stusex: 'Male', Stuage: 18},
{Stunum: 002, Stuname: 'Smith', StuseX :'Female',stuAge:19},
{stuNum:003,stuName:'jack',stuSex:'Male',stuAge:20},
{stuNum:004,stuName :'lucy',stuSex:'female',stuAge:18},
## . The data in the form The attribute name must be enclosed in double quotes. Do not use single quotes or exclude them. Otherwise, when calling the JQuery form method $.parseJSON(), a JSON format string will be converted into JS object will report an errorThe correct format is: {"kname":v1,"kname2":v2}Three pop-up boxes: alert, confirm, prompt, JEasyUI all encapsulate them and place them in the messager component.
1. alert has three parameters: the first is the title of the pop-up box, the second is the detailed content information of the pop-up box, and the third is the icon information displayed by the pop-up box (there are these Types that can be filled in: info, error, question, warning) $.messager.alert("Title information", "Message content", "error")2. There are also three confirm Parameters: The first two are the same as alert, the third one is the callback function, the parameter data is true/false (the user clicks to confirm or cancel)
$.messsager.confirm("title information", "content information" ,function(data){ })
3. Prompt also has three parameters: the same as confirm’s parameters. The only difference is that data represents the user’s input information $.messager. prompt("title information","content information",function(data){ })Adaptive properties of panel component:
has data-options=" "fit:true" attribute elements (class contains the panel attribute value) will automatically fill the parent container.
The above is the detailed content of Sharing of common errors in JEasyUI. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to delete Xiaohongshu notes? Notes can be edited in the Xiaohongshu APP. Most users don’t know how to delete Xiaohongshu notes. Next, the editor brings users pictures and texts on how to delete Xiaohongshu notes. Tutorial, interested users come and take a look! Xiaohongshu usage tutorial How to delete Xiaohongshu notes 1. First open the Xiaohongshu APP and enter the main page, select [Me] in the lower right corner to enter the special area; 2. Then in the My area, click on the note page shown in the picture below , select the note you want to delete; 3. Enter the note page, click [three dots] in the upper right corner; 4. Finally, the function bar will expand at the bottom, click [Delete] to complete.

No more need for pip? Come and learn how to uninstall pip effectively! Introduction: pip is one of Python's package management tools, which can easily install, upgrade and uninstall Python packages. However, sometimes we may need to uninstall pip, perhaps because we wish to use another package management tool, or because we need to completely clear the Python environment. This article will explain how to uninstall pip efficiently and provide specific code examples. 1. How to uninstall pip The following will introduce two common methods of uninstalling pip.

As a Xiaohongshu user, we have all encountered the situation where published notes suddenly disappeared, which is undoubtedly confusing and worrying. In this case, what should we do? This article will focus on the topic of "What to do if the notes published by Xiaohongshu are missing" and give you a detailed answer. 1. What should I do if the notes published by Xiaohongshu are missing? First, don't panic. If you find that your notes are missing, staying calm is key and don't panic. This may be caused by platform system failure or operational errors. Checking release records is easy. Just open the Xiaohongshu App and click "Me" → "Publish" → "All Publications" to view your own publishing records. Here you can easily find previously published notes. 3.Repost. If found

How to add product links in notes in Xiaohongshu? In the Xiaohongshu app, users can not only browse various contents but also shop, so there is a lot of content about shopping recommendations and good product sharing in this app. If If you are an expert on this app, you can also share some shopping experiences, find merchants for cooperation, add links in notes, etc. Many people are willing to use this app for shopping, because it is not only convenient, but also has many Experts will make some recommendations. You can browse interesting content and see if there are any clothing products that suit you. Let’s take a look at how to add product links to notes! How to add product links to Xiaohongshu Notes Open the app on the desktop of your mobile phone. Click on the app homepage

To learn more about the matplotlib color table, you need specific code examples 1. Introduction matplotlib is a powerful Python drawing library. It provides a rich set of drawing functions and tools that can be used to create various types of charts. The colormap (colormap) is an important concept in matplotlib, which determines the color scheme of the chart. In-depth study of the matplotlib color table will help us better master the drawing functions of matplotlib and make drawings more convenient.

The Charm of Learning C Language: Unlocking the Potential of Programmers With the continuous development of technology, computer programming has become a field that has attracted much attention. Among many programming languages, C language has always been loved by programmers. Its simplicity, efficiency and wide application make learning C language the first step for many people to enter the field of programming. This article will discuss the charm of learning C language and how to unlock the potential of programmers by learning C language. First of all, the charm of learning C language lies in its simplicity. Compared with other programming languages, C language

Learn Pygame from scratch: complete installation and configuration tutorial, specific code examples required Introduction: Pygame is an open source game development library developed using the Python programming language. It provides a wealth of functions and tools, allowing developers to easily create a variety of type of game. This article will help you learn Pygame from scratch, and provide a complete installation and configuration tutorial, as well as specific code examples to get you started quickly. Part One: Installing Python and Pygame First, make sure you have

When editing text content in Word, you sometimes need to enter formula symbols. Some guys don’t know how to input the root number in Word, so Xiaomian asked me to share with my friends a tutorial on how to input the root number in Word. Hope it helps my friends. First, open the Word software on your computer, then open the file you want to edit, and move the cursor to the location where you need to insert the root sign, refer to the picture example below. 2. Select [Insert], and then select [Formula] in the symbol. As shown in the red circle in the picture below: 3. Then select [Insert New Formula] below. As shown in the red circle in the picture below: 4. Select [Radical Formula], and then select the appropriate root sign. As shown in the red circle in the picture below:
