obj.options[obj.options.length] = new Option('".$r['smg_id']."','".$r['smg_name']."');可能js找不到obj吧,代码太乱O.o