strict-date:验证值是否为 Date 对象

时间:2021-06-20 13:42:01
【文件属性】:
文件名称:strict-date:验证值是否为 Date 对象
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-20 13:42:01
Makefile 日期对象 验证值是否为 Date 对象。 安装 $ npm install validate.io-strict-date 要在浏览器中使用,请使用 。 用法 var isDate = require ( 'validate.io-strict-date' ) ; isDate( 值 ) 验证value是否为Date对象。 var value = new Date ( ) ; var bool = isDate ( value ) ; // returns true 例子 console . log ( isDate ( new Date ( ) ) ) ; // returns true console . log ( isDate ( Date . now ( ) ) ) ; // returns false 要从*应用程序目录运行示例代码, $ node ./ex
【文件预览】:
strict-date-master
----.travis.yml(73B)
----.jshintignore(118B)
----package.json(1KB)
----test()
--------test.js(778B)
----LICENSE(1KB)
----TODO.md(12B)
----.npmignore(498B)
----examples()
--------index.js(159B)
----.gitignore(711B)
----lib()
--------index.js(683B)
----Makefile(2KB)
----README.md(3KB)
----.jshintrc(1KB)
----.editorconfig(169B)
----.gitattributes(12B)

网友评论