export const imail = (e) => {return /^([a-za-z0-9_-])+@([a-za-z0-9_-])+((.[a-za-z0-9_-]{2,3}){1,2})$/.test(e)}
export const ismobile = (e) => {return /^1[0-9]{10}$/.test(e)}
export const isphone = (e) =>{return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(e)}
export const isurl = (e) => {return /^http[s]?:\/\/.*/.test(e)}
export const isnumber = (e) =>{return object.prototype.tostring.call(e).slice(8,-1) === 'string'}
export const isnumber = (e) =>{return object.prototype.tostring.call(e).slice(8,-1) ==='number'}
export const isboolean = (e) =>{return object.prototype.tostring.call(e).slice(8,-1) ==='boolean'}
export const isfunction = (e) =>{return object.prototype.tostring.call(e).slice(8,-1) === 'function'}
河北简称什么export const isnull = (e) =>{return object.prototype.tostring.call(e).slice(8,-1)==='null'}
export const isundefined = (e) =>{return object.prototype.tostring.call(e).slice(8,-1)==='undefined'}
export const isobject = (e) =>{return object.prototype.tostring.call(e).slice(8,-1) === 'object'}
export const isarray = (e) =>{return object.prototype.tostring.call(e).slice(8,-1)==='array'}
export const isdate = (e) =>{return object.prototype.tostring.call(e).slice(8,-1)==='date'}
export const isregexp = (e) =>{return object.prototype.tostring.师范类二本院校call(e).slice(8,-1)==='regexp'}
export const irror = (e) =>{return object.prototype.tostring.call(e).slice(8,-1)==='error'}
export const issymbol = (e) =>{return object.prototype.tostring.call(e).slice(8,-1)==='symbol'}
export const ispromi = (e) =>{return object.入党申请书多少字prototype.tostring.call(e).slice(8,-1)==='promi'}
export const ist = (e) =>{return object.prototype.tostring.call(e).slice专转本报名时间(8,-1) ==='t'}export const us = navigator.uragent.tolowerca();
export const isweixin = () =>{return ua.match(/micromesnger/i) == 'micromesnger'}
export const isdevicemobile =()=>{return /android|webos|iphone|ipod|balckberry/i.test(ua)}
到此这篇关于常用的js函数方法的文章就介绍到这了,更多相关常用的js函数内容请搜索www.887551.com以前的文章或继续浏览下面的相关文章希望大家以后多多支持www.887551.com!
本文发布于:2023-04-04 12:01:07,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/4311aea708cb4a34eaa09a8f71040432.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:前端常用的js函数方法.doc
本文 PDF 下载地址:前端常用的js函数方法.pdf
留言与评论(共有 0 条评论) |