City.js 794 B

1234567891011121314151617
  1. //城市选择控件
  2. Namespace.register("U.Control.City"); //命名空间
  3. //城市选择控件主函数
  4. U.Control.City.Choose = function () {
  5. var spbtk19 = $$("div", { "class": "U_Control_City_szdCity" }, document.body);
  6. var spcountry = $$("select", { "id": "country", "className": "U_Control_City_spcountry", "onchange": "U.U.XGSZST($('select', $(this).Parent()), [1, 2], true)" }, spbtk19);
  7. var spsf = $$("select", { "id": "province", "className": "U_Control_City_spsf", "onchange": "U.U.XGSZST($('select', $(this).Parent()), [2], true)" }, spbtk19);
  8. var spcity = $$("select", { "id": "city", "className": "U_Control_City_spcity" }, spbtk19);
  9. var CtiyInfo = { "Country": null, "Province": null, "City": null };
  10. U.U.LCJ(spbtk19, CtiyInfo);
  11. return spbtk19;
  12. }