var oTo = document.getElementById("customerid_i");oTo.setAttribute("defaulttype", "1"); //默认开启客户oTo.setAttribute("lookuptypes", "1"); //只有客户 oTo.setAttribute("_lookuptypes", "1");//只有客户