EasyUI Forum
May 03, 2024, 07:41:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 能否统一(或者简化) API 调用  (Read 7348 times)
iamjxc
Jr. Member
**
Posts: 80


View Profile
« on: April 11, 2014, 05:02:35 AM »

在使用 easyui 时, 经常要编写这样的代码:

if (type == "combobox"){            
    dest.combobox("setValue", "");
}else if (type == "combogrid"){
    dest.combogrid("setValue", "");
}else if (type == "combotree"){
    dest.combotree("setValue", "");
}

为什么不统一 API 呢?
dest.combo("setValue", "");

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!