JavaScript
文章平均质量分 76
cheryl1116
这个作者很懒,什么都没留下…
展开
-
Common HTML events
Alert window.alert("Hello World!")原创 2015-12-14 21:44:53 · 327 阅读 · 0 评论 -
Common JS Function
var myFunction = function (a, b) {return a * b} document.getElementById("demo").innerHTML = myFunction(4, 3); Reference: http://www.w3schools.com/js/js_function_definition.asp原创 2016-01-05 19:18:30 · 320 阅读 · 0 评论 -
Common JS String Methods
Method Description charAt() Returns the character at the specified index (position) charCodeAt() Returns the Unicode of the character at the specified index concat() Joins two or mo转载 2015-12-15 03:27:37 · 371 阅读 · 0 评论 -
The difference between JS and jQuery
See https://blog.udemy.com/jquery-vs-javascript/转载 2016-01-06 05:59:31 · 354 阅读 · 0 评论 -
《Javascript高级程序设计》读书笔记之——Prototype
0. 写在前面 创建对象: var person = new Object(); person.name = "Nicholas"; person.age = 24; person.job = "Engineer"; person.sayName = function(){ alert(this.name); }; 如果需要通过接口创建大量对象,那么会产生大量重复代码,工厂模式原创 2016-07-10 00:53:23 · 300 阅读 · 0 评论 -
《Javascript高级程序设计》读书笔记之——基本包装类型
基本包装类型: 基本类型与引用类型之间不同,引用类型可以随时调用自己的方法,而基本类型重写了方法。 Boolean类型: 尽量不要使用该类型 var falseObj = new Boolean(false); var result = falseObj && true; alert(result); //true var falseValue = false; var res原创 2016-07-08 18:14:55 · 310 阅读 · 0 评论