`
cxy020
  • 浏览: 61304 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
constructor属性始终指向创建当前对象的构造函数.   如果对 constructor的指向不是很理解,请先看 http://cxy020.iteye.com/blog/1028100 //兼容ie浏览器测试 var console = console || {}; console.log = console.log || function(a){ alert(a); } //类 functi ...
&& 和 || 运算符 ||,或运算 &&,与运算   或运算,指的是 如果 条件为真 则返回 本身,如果为假 则返回 默认值 var a = true || 1; a = true; var a = false || 1; a = 1;  如何判断条件是否为真呢,可以通过Boolean()判定; Boolean(undefined);//false; //形象一些 var a = {}; Boolean(a.b);//false; Boolean(null);//false; Boolean("");//fa ...

touchmove获取clientX

 
$("body").bind('touchmove', function(e){ //stops normal scrolling with touch e.preventDefault(); console.log(event.touches[0].pageX); console.log(event.touches[0].clientX); })  You are right, seems like a bug. You could hack around it by offsetting the scroll of the page (event.ta ...

js请求(2)

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>js请求</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> </head> ...

js请求(1)

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>js请求</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> </head> ...

js事件(5)

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>js事件封装</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> </head> ...

js事件(4)

 
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>jQuery事件</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> </head& ...

js事件(3)

1<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>JS事件</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> <style> ...

js事件(2)

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>JS事件</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> <style> ...

js事件(1)

<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>JS事件</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> <style ...
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>HTML动态更新</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> & ...
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>CSS</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> <style> ...
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>HTML标签</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> </head> ...
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>HTML标签</title> <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script> </head> ...

html介绍(1)

 
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>HTML标签</title> </head> <body> <!-- 输入框 --> <input id="mytxt" type="text" /><br /> <!-- 密码框 -- ...
Global site tag (gtag.js) - Google Analytics