ExtJS 面试题与答案
问题 11. What is use of Ext.onReady() function ?
Ext.onReady is probably the first method that you’ll use on every page. This method is automatically called once the DOM is fully loaded, guaranteeing that any page elements that you may want to reference will be available when the script runs.
syntax:
Ext.onReady(function() {
alert(“Congratulations! You have Ext configured correctly!”);
});
问题 12. For example, to show our message when any paragraph in our test page is clicked, what is the ExtJS code on paragraph click?
Ext.onReady(function() {
Ext.select('p').on('click', function() {
alert("You clicked a paragraph");
});
});
or
Ext.onReady(function() {
var paragraphClicked = function() {
alert("You clicked a paragraph");
}
Ext.select('p').on('click', paragraphClicked);
});
问题 13. List out the extjs library files to include in JSP page?
ext-base.js
ext-all-debug.js or ext-all.js
ext-all.css
base.css or examples.css
问题 14. List out the css file required to apply Extjs Theme property?
xtheme-gray.css
ext-all.css
问题 15. What is purpose of MessageBox?
MessageBox is asynchronous.
MessageBox call, which demonstrates the readable message to user.
MessageBox used for multiple purpose like
Ext.Msg.alert()
Ext.Msg.prompt()
Ext.Msg.show({});
Ext.Msg.wait();
用户评价最有帮助的内容:
- Why did you choose Ext JS?
- Why do we need javascript Library?
- What is syntax for Extjs Button click event?
- How to access DOM element using EXTJS?
- Integration of Web development server-side frameworks with Ext JS?