function setData(text, data, icon) {
input.val(text);
if (icon !== undefined && icon !== "undefined" && icon.length > 0) {
inputIconSpan.attr("class", icon);
input.css("padding-left", (inputPaddingLeft + paddingLeftAdd ) + "px");
if (!isIE) {
ulObj.css("margin-right", "-" + (inputPaddingLeft + paddingLeftAdd ) + "px");
}
} else {
inputIconSpan.attr("class", "");
input.css("padding-left", inputPaddingLeft + "px");
if (!isIE) {
ulObj.css("margin-right", "-" + (inputPaddingLeft + paddingLeftAdd ) + "px");
}
setData()方法给下拉框赋值--------附的仅仅是显示值-,再选择会去掉,如果一直存在,需要加到数组里
最新推荐文章于 2021-05-27 08:01:20 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)