javascript
BobChill
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HTML里的data-href,data-uri属性的用法
data-* 属性用于存储页面或应用程序的私有自定义数据。 data-* 属性赋予我们在所有 HTML 元素上嵌入自定义 data 属性的能力。 存储的(自定义)数据能够被页面的 JavaScript 中利用,以创建更好的用户体验 (不进行 Ajax 调用或服务器端数据库查询)。 data-* 属性包括两部分: 属性名不应该包含任何大写字母,并且在前缀 "data-" 之后必须有至少一个字符 属性值可以是任意字符串 简单来说就是存储一些简单信息,然后可以通过js拿到这些信息, 像你说的data..原创 2020-11-22 00:36:46 · 7319 阅读 · 0 评论 -
Javascript 中var与let的区别
understanding scope var declaration 一共就两点要注意: 1.var variables are either function-wide or global, they are visible through blocks 2.all var are hoisted(raised) to the top of the function,Declarati...原创 2019-01-20 17:02:53 · 338 阅读 · 1 评论 -
data types in javascript(typeof null)
总结: There are 7 basic types in JavaScript. number for numbers of any kind: integer or floating-point. string for strings. A string may have one or more characters, there’s no separate single-charac...原创 2019-01-22 12:50:16 · 229 阅读 · 0 评论 -
理解javascript异步编程
火狐浏览器的api文档有这样一句话: Because even though setTimeout was called with a delay of zero, it's placed on a queue and scheduled to run at the next opportunity, not immediately. Currently executing code must...原创 2019-02-05 00:02:24 · 280 阅读 · 0 评论 -
getElementsByTagName和querySelectorAll的区别
两个都是javascript的原生方法。 getElementsByTagName方法返回的是HTMLCollection对象。 querySelectorAll方法返回的是NodeList对象。 NodeList与HTMLCollection的区别可以参考下面的文章 NodeList vs HTMLCollection 两个方法的区别有 getXX...原创 2019-02-25 11:05:31 · 455 阅读 · 0 评论
分享