zoukankan      html  css  js  c++  java
  • easyUI文本框textbox笔记

    知识点:

    1.图标位置 Icon Align属性,有left和right两个;

    2.textbox的setvalue方法,getvalue方法。

    <div style="margin:10px 0 20px 0">
    <span>Select Icon Align: </span>
    <select onchange="$('#tt').textbox({iconAlign:this.value})">
          <option value="right">Right</option>
          <option value="left">Left</option>
    </select>
    </div>
    <input id="tt" class="easyui-textbox" style="400px" data-options="
         prompt: 'Input something here!',
         iconWidth: 22,
         icons: [{
             iconCls:'icon-add',
             handler: function(e){
             $(e.data.target).textbox('setValue', 'Something added!');
              }
        },

       {
             iconCls:'icon-remove',
             handler: function(e){
             $(e.data.target).textbox('clear');
            }
       },

       {
          iconCls:'icon-search',
          handler: function(e){
          var v = $(e.data.target).textbox('getValue');
          alert('The inputed value is ' + (v ? v : 'empty'));
           }
        }]
    ">

  • 相关阅读:
    【转】 MySQL高级知识(一)——基础
    inline元素的间距问题
    ES6对于数组的扩展
    JavaScript的垃圾回收机制
    call() apply() bind()
    防抖和节流
    Promise
    js的事件机制
    Javascript异步操作的异常处理
    JavaScript的事件执行机制及异步
  • 原文地址:https://www.cnblogs.com/Lxiaojiang/p/5927244.html
Copyright © 2011-2022 走看看