您好 ,这个没有具体的示例,给你参考个添加和移除事件的方法
- onload = function() {
- // log element
- var eLog = document.getElementById('log');
-
- // create some input controls
- var theCombo = new wijmo.input.ComboBox('#theCombo', {
- itemsSource: 'US,Germany,UK,Japan,Italy,Greece'.split(','),
- });
- theCombo.addEventListener(theCombo.hostElement, 'mouseenter', function() {
- log.textContent = 'mouseenter on ComboBox';
- });
- theCombo.addEventListener(theCombo.hostElement, 'mouseleave', function() {
- log.textContent = 'mouseleave on ComboBox';
- });
- var theDate = new wijmo.input.InputDate('#theDate', {
- value: new Date(),
- });
- theDate.addEventListener(theDate.hostElement, 'mouseenter', function() {
- log.textContent = 'mouseenter on InputDate';
- });
- theDate.addEventListener(theDate.hostElement, 'mouseleave', function() {
- log.textContent = 'mouseleave on InputDate';
- });
- }
复制代码 |