锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧洲精品一区二区三区,第九色区aⅴ天堂久久香,欧美亚洲国产视频http://www.aygfsteel.com/keweibo/category/54528.html<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- iteye 460 60 --> <ins class="adsbygoogle" style="display:inline-block;width:468px;height:60px" data-ad-client="ca-pub-2876867208357149" data-ad-slot="0418982663"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> zh-cnThu, 18 Sep 2014 05:21:27 GMTThu, 18 Sep 2014 05:21:27 GMT60jquery easyui鎯敤form鎺т歡鐨勪嬌鐢?杞?http://www.aygfsteel.com/keweibo/articles/417994.htmlKeKeTue, 16 Sep 2014 11:20:00 GMThttp://www.aygfsteel.com/keweibo/articles/417994.htmlhttp://www.aygfsteel.com/keweibo/comments/417994.htmlhttp://www.aygfsteel.com/keweibo/articles/417994.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/417994.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/417994.htmljquery easyui甯哥敤form鎺т歡鐨勪嬌鐢?杞?
easyui涓烘垜浠彁渚涚殑綆鍗曠殑楠岃瘉鍔熻兘錛岄獙璇佹柟娉曞寘鎷細鏁版嵁鏍煎紡鐨勯獙璇侊紝闀垮害鐨勯獙璇侊紝鏄惁涓哄繀杈撻」鐨勯獙璇侊紝灝嗛渶瑕侀獙璇佺殑灞炴ч厤緗埌data-options涓嵆鍙?/span>

1 鏁版嵁鏍煎紡楠岃瘉錛?/span>

錛?錛夛細蹇呰緭欏癸細

          <input class="easyui-validatebox" type="text" name="name" data-options="required:true"></input>

 (2)鏍煎紡鐨勯獙璇侊細

         <input class="easyui-validatebox" type="text" name="email" data-options="validType:'email'"></input>

<input class="easyui-validatebox" type="text" name="email" data-options="required:true,validType:'url'"></input>

錛?錛夐暱搴﹁寖鍥寸殑楠岃瘉錛?

      <input class="easyui-validatebox" data-options="validType:'length[1,3]'">

錛?錛塶umerbox錛?

      <input id="nn" class="easyui-numberbox" data-options="min:5.5,max:20,precision:2,required:true"/>

      method錛?('#mm').numberbox(setValue,getValue)

錛?錛塶umberspinner錛?

     <input id="ss" class="easyui-numberspinner" data-options="min:10,max:100,required:true" style="width:80px;"></input>
     <input class="easyui-numberspinner" value="1000" data-options="increment:100" style="width:120px;"></input>

(6)combo

 <div id="sp">
  <div style="color:#99BBE8;background:#fafafa;padding:5px;">Select a language</div>
  <input type="radio" name="lang" value="01"><span>Java</span><br/>
  <input type="radio" name="lang" value="02"><span>C#</span><br/>
  <input type="radio" name="lang" value="03"><span>Ruby</span><br/>
  <input type="radio" name="lang" value="04"><span>Basic</span><br/>
  <input type="radio" name="lang" value="05"><span>Fortran</span>
 </div>

js錛? $(function(){
   $('#cc').combo({
    required:true,
    editable:false
   });
   $('#sp').appendTo($('#cc').combo('panel'));
   $('#sp input').click(function(){
    var v = $(this).val();
    var s = $(this).next('span').text();
    $('#cc').combo('setValue', v).combo('setText', s).combo('hidePanel');
   });
  });

(7)combobox錛?

I: <select id="cc" class="easyui-combobox" name="state" style="width:200px;" data-options="required:true">
  <option value="AL">Alabama</option>
  <option value="AK">Alaska</option>
  <option value="AZ">Arizona</option>
 </select>

II錛?<input class="easyui-combobox"
   name="language"
   data-options="
     url:'combobox_data.json',
     valueField:'id',
     textField:'text',
     multiple:true,
     panelHeight:'auto'
   ">

method錛? function loadData(){
   $('#cc').combobox({
    url:'combobox_data.json',
    valueField:'id',
    textField:'text'
   });
  }
  function setValue(){
   $('#cc').combobox('setValue','CO');
  }
  function getValue(){
   var val = $('#cc').combobox('getValue');//濡傛灉鏄閫夛紝鍒欒皟鐢ㄦ柟娉曪細getValues錛宺eturn錛歷al1,val2,val3
   alert(val);
  }
  function disable(){
   $('#cc').combobox('disable');
  }
  function enable(){
   $('#cc').combobox('enable');
  }

 

(8)datepicker

    <input class="easyui-datebox" data-options="formatter:formatDate">

    js:function formatterDate(data){

     var year = date.getFullYear();

     var month = date.getMonth + 1;

     var date = date.getDate();

    if(month < 10){

      month = '0' + month;

 }

   return year + '-' + month + '-' + date;

 }


Ke 2014-09-16 19:20 鍙戣〃璇勮
]]>
杞細Easyui Tree鏂規硶鎵╁睍 - getLevel(鑾峰彇鑺傜偣綰у埆)http://www.aygfsteel.com/keweibo/articles/417899.htmlKeKeSat, 13 Sep 2014 08:12:00 GMThttp://www.aygfsteel.com/keweibo/articles/417899.htmlhttp://www.aygfsteel.com/keweibo/comments/417899.htmlhttp://www.aygfsteel.com/keweibo/articles/417899.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/417899.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/417899.htmlhttp://www.jeasyuicn.com/the-extended---easyui-tree-method-getlevel-access-node-level.html


Easyui Tree涓鐩村氨娌℃湁鎻愪緵榪欎釜鏂規硶,浠ュ墠娌℃湁鐢ㄥ埌,鎵浠ヤ竴鐩存病鎬庝箞鍦ㄦ剰,榪欐鑷繁鐢ㄥ埌浜?欏轟究鎵╁睍浜嗕竴涓柟娉?鍒嗕韓緇欏ぇ瀹?

1 $.extend($.fn.tree.methods, {
2     getLevel:function(jq,target){
3         var l = $(target).parentsUntil("ul.tree","ul");
4         return l.length+1;
5     }
6 });
鐢ㄦ硶:
1 var node = $().tree("getSelected");
2 var lv =  $().tree("getLevel",node.target);


Ke 2014-09-13 16:12 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 泗洪县| 华亭县| 庆城县| 惠水县| 离岛区| 平阳县| 黄龙县| 抚顺市| 凤冈县| 惠水县| 会东县| 思茅市| 米林县| 三原县| 延长县| 平舆县| 淅川县| 萝北县| 耿马| 大厂| 南城县| 忻州市| 中方县| 朝阳县| 凤山市| 汤阴县| 鸡泽县| 鄱阳县| 千阳县| 扎赉特旗| 尼木县| 桦甸市| 自治县| 阳山县| 尉犁县| 延边| 中阳县| 霞浦县| 济阳县| 鹰潭市| 合肥市|