EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 03, 2024, 07:41:08 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
能否统一(或者简化) API 调用
Pages: [
1
]
« previous
next »
Print
Author
Topic: 能否统一(或者简化) API 调用 (Read 7348 times)
iamjxc
Jr. Member
Posts: 80
能否统一(或者简化) API 调用
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...