Home > Web Front-end > JS Tutorial > Examples briefly describe some usages of jQuery Easyui

Examples briefly describe some usages of jQuery Easyui

小云云
Release: 2017-12-31 09:41:49
Original
1432 people have browsed it

This article mainly introduces some usages of jQuery Easyui. It is very good and has reference value. Friends who need it can refer to it. I hope it can help everyone.

1. Some controls in the form, such as textbox, combobox, etc., add additional events, such as mouse events (mouseover, click, etc.), keyboard events (keydown, keyup, etc.), which can be implemented in 2 ways , take textbox as an example

Method one: on method

 $("#tt").textbox('textbox').click(function(){
     console.info(123); 
 });//注意这里必须的.textbox('textbox')
Copy after login

easyui’s own inputEvents method

$("#org").textbox({
       inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{
        click:function(){
          console.info(123);
         }
       })
     });//其中注意几个关键字:inputEvents、$.fn.textbox.defaults.inputEvents(如果是textbox用textbox)
Copy after login

Method two can put multiple methods, just use, to separate them .

Related recommendations:

Detailed examples of adding operation buttons to each row of data in EasyUI's DataGrid

Detailed examples of jQuery EasyUI combined with zTree tree structure Making a web page

EasyUI Create Personnel Tree Sample Code

The above is the detailed content of Examples briefly describe some usages of jQuery Easyui. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template