how would I detect if “multiple” attribute is supported for file input elements?

后端 未结 2 1758
南旧
南旧 2021-01-12 02:26

Internet Explorer does not support the multiple attribute for . However, its not only IE that lacks this support... al

2条回答
  •  孤独总比滥情好
    2021-01-12 02:43

    var inp = document.createElement("input");
    inp.setAttribute("multiple", "true");
    var supportsMultiple = inp.multiple===true;
    

提交回复
热议问题