- 注册时间
- 2013-5-3
- 最后登录
- 2025-1-16
- 阅读权限
- 150
- 积分
- 32994
- 精华
- 0
- 帖子
- 14376
|
<input id="t1" class="mini-textbox showTips" />- var tip = new mini.ToolTip();
- tip.set({
- target: document,
- selector: '.showTips',
- onbeforeopen: function (e) {
- e.cancel = false;
- },
- onopen: function (e) {
- var el = e.element;
- var control = mini.get(el);
- var title = control.getInputText();
- var placement = control.placement;
- if (title != "") {
- tip.setPlacement(placement);
- tip.setContent(title);
- } else {
- tip.setVisible(false);
- }
- }
- });
复制代码 |
|