判断http或者httpsvar http = 'https:' == document.location.protocol ? false : true;js的类型检测方式/**** js的类型检测方式->typeof、constuctor。* 推荐通过构造函数来检测变量的类型。*/var obj... Read More
posted @ 2015-08-10 14:34 走走停停走走 Views(2266) Comments(0) Diggs(0) Edit
function IsURL(str_url){ var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?"... Read More
posted @ 2015-08-10 14:29 走走停停走走 Views(3570) Comments(1) Diggs(0) Edit