s = document.createElement('select');

try{

//for ie8 or earlier
s.add(new Option('text','value'),s.options[null]);
}catch(e){
s.add(new Option('text','value'),null);
}

相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-10-27
  • 2022-02-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-28
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案