随笔分类 -  编程学习-JavaScript

摘要:Separation of concern is at the heart while designing an AngularJS application. Your controller must be responsible for binding model data to views us... 阅读全文
posted @ 2014-12-04 18:01 jiayouwyhit 阅读(203) 评论(0) 推荐(0)
摘要:在官网中给出的代码[1]是有问题的,如下的代码并不能正常工作:// Update…var p = d3.select("body").selectAll("p") .data([4, 8, 15, 16, 23, 42]) .text(String);// Enter…p.enter()... 阅读全文
posted @ 2014-11-03 16:17 jiayouwyhit 阅读(2354) 评论(0) 推荐(0)
摘要:以下内容主要摘自[1,2](1)In javascript,functions are first-class objects, which means functions can be used in a first-class manner like objects, since they ar... 阅读全文
posted @ 2014-10-13 21:56 jiayouwyhit 阅读(860) 评论(0) 推荐(0)
摘要:考察w3school上的一个实际的例子[1]:Let AJAX change this text通过 AJAX 改变内容 关注下标红部分的代码的顺序,如果把代码改成如下的顺序:Let AJAX change this text通过 AJAX 改变内容 Let AJAX change this t... 阅读全文
posted @ 2014-09-13 20:27 jiayouwyhit 阅读(900) 评论(0) 推荐(0)
摘要:今天在学习JavaScript的时候碰到的一个类似于如下代码的问题:/** * * * one * two * three * one * */var lists = document.getElementsByTagName('li');for(var i =... 阅读全文
posted @ 2014-09-11 21:11 jiayouwyhit 阅读(707) 评论(0) 推荐(0)