![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
文章平均质量分 72
xyq3949
这个作者很懒,什么都没留下…
展开
-
freecodecamp JavaScript学习(二)
Accessing Objects Properties -使用”.”,”[]”来选择对象的属性,如果对象的属性名中 有空格,则必须使用[]方法来选择属性 `var testObj = { “an entree”: “hamburger”, “my side”: “veggies”, “the drink”: “water” }; var entreeValue = testObj原创 2017-05-22 11:53:22 · 531 阅读 · 0 评论 -
freecodecamp JavaScript学习(四)
Reverse a Stringfunction reverseString(str) { //covert string to an array //var strArray=str.split(''); //reverse the new array //strArray.reverse(); //join the array to a string //return原创 2017-05-23 14:17:06 · 356 阅读 · 0 评论 -
freecodecamp json APIs and Ajax
Change Text with Click Events-on(), 向元素添加事件处理程序 $(document).ready(function() { $("#getMessage").on("click", function(){ $(".message").html("Here is the message"); }); });原创 2017-05-27 13:44:23 · 321 阅读 · 0 评论 -
freecodecamp JavaScript学习(-)
freecodecamp JavaScript学习Understanding Uninitialized Variablesjavascript变量未初始化时,初始值为underfined如果对未初始化的变量进行加减乘除时,得到的值为:NaN,not a number如果对为初始化的变量进行字符串拼接时,得到的值为一串字符串:“undefined”Convert Celsius to Fah原创 2017-05-17 14:11:43 · 433 阅读 · 0 评论 -
freecodecamp JavaScript学习(三)
Make Object Properties Private -var 定义私有属性,方法, this定义公共属性,方法var Car = function() { // this is a private variable var speed = 10; // these are public methods this.accelerate = function(change)原创 2017-05-22 15:05:46 · 393 阅读 · 0 评论 -
JavaScript权威指南学习笔记(一)
第3章 类型、值和变量JavaScript有两个特殊的的原始值,null和undefinedJavaScript除了数字,字符串、布尔值、null和undefined之外的就是对象数字-JavaScript不区分整数值和浮点数。JavaScript中的所有数字均用浮点数表示。整数型直接量十进制整数十六进制值,以“0x”或“OX”为前缀,其后跟随十六进制数串ECMAScript标准不支持八原创 2017-06-16 09:43:39 · 333 阅读 · 0 评论 -
JavaScript权威指南学习笔记(一)2
第3章 类型、值和变量文本字符串的使用var s = "hello, world" // Start with some text.s.charAt(0) // => "h": the first character.s.charAt(s.length-1) // => "d": the last character.s.substrin原创 2017-06-20 19:40:58 · 507 阅读 · 0 评论