In the extjs example, most ofProgramThe first line uses the following statement: Ext. quicktips. INIT ();
But what is the use of quicktips?
Let's take a look at the simplestCode:
< Html >
< Head >
< Meta HTTP - Equiv = " Content-Type " Content = " Text/html; charset = GBK " >
< Title > 04 . Form </ Title >
< LINK rel = " Stylesheet " Type = " Text/CSS " Href = " Http://www.cnblogs.com/resources/css/ext-all.css " />
< Script Type = " Text/JavaScript " SRC = " Http://www.cnblogs.com/adapter/ext/ext-base.js " > </ Script >
< Script Type = " Text/JavaScript " SRC = " Http://www.cnblogs.com/ext-all.js " > </ Script >
</ Head >
< Body >
< A href = " # " Ext: QTip = " My tooltip " > Link </ A >
<A href = "#" Ext: QTip = "My tooltip1"> link2 </a>
<Input type = "button" Ext: QTip = "My tooltip3" value = "button"/>
< Script Type = " Text/JavaScript " >
Ext. onready (function (){
Ext. quicktips. INIT ();
});
</ Script >
</ Body >
</ Html >
Effect of hovering the mouse over the link
that is, move the mouse over the link and the input box next to it. A prompt is displayed next to the mouse. Obviously, you can see the role of Ext. quicktips. INIT (). The role of quicktips is to read the ext: QTip attribute in the tag and assign it an action to display the prompt.