gpt4 book ai didi

javascript - HTML 5 + Progress 元素检查?

转载 作者:太空狗 更新时间:2023-10-29 13:44:43 27 4
gpt4 key购买 nike

这可能是非常基本的,或者不可能的,但它暗示了我,值得一问。有没有办法检查浏览器是否支持 html 5 progress 元素?

var progress = document.createElement('progress');

最佳答案

另一个单线,取自Modernizr :

//returns true if progress is enabled
var supportsProgress = (document.createElement('progress').max !== undefined);

关于javascript - HTML 5 + Progress 元素检查?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15994465/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com