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')
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)
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!