如何使用 type="Date"
为 HTML 输入字段提供通用的、不显眼 polyfill 或后备机制? ?
最佳答案
有一个number的 polyfills available , 你只需要在 yepnope 语句中将它添加为 nope
值
yepnope({
test : Modernizr.inputtypes.date,
nope : ['polyfill.js'']
});
关于javascript - 为 HTML5 日期输入添加 Polyfill/fallback?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22546802/