
js
wwj_zy
这个作者很懒,什么都没留下…
展开
-
js闭包
一、什么是闭包? “官方”的解释是:所谓“闭包”,指的是一个拥有许多变量和绑定了这些变量的环境的表达式(通常是一个函数),因而这些变量也是该表达式的一部分。 相信很少有人能直接看懂这句话,因为他描述的太学术。我想用如何在Javascript中创建一个闭包来告诉你什么是闭包,因为跳过闭包的创建过程直接理解闭包的定义是非 常困难的。看下面这段代码:转载 2015-08-27 16:12:18 · 279 阅读 · 0 评论 -
AngularJS Tutorial(14)from w3school
AngularJS forms and controls can validate input data.Input ValidationIn the previous chapter, you learned about AngularJS forms and controls.AngularJS forms and controls can provide valida转载 2015-08-04 09:28:28 · 520 阅读 · 0 评论 -
AngularJS Tutorial(8)from w3school
The ng-repeat directive is perfect for displaying tables.Displaying Data in a TableDisplaying tables with angular is very simple:AngularJS Exampledivng-app="myApp" ng-controller="c转载 2015-08-04 09:23:53 · 1239 阅读 · 0 评论 -
win7下面搭建angularjs开发环境
1、安装git,添加环境变量2、github上有一个比较好的纯净AngularJs app的种子,可以去github下载,地址:https://github.com/glitchtank/angular-seed-master,也可以使用git clone到本地,解压3、安装nodejs,添加环境变量4、打开cmd,进入到angular-seed-master-master目录,然原创 2015-08-04 15:06:40 · 2364 阅读 · 0 评论 -
AngularJS Tutorial(1)from w3school
This TutorialThis tutorial is specially designed to help you learn AngularJS as quickly and efficiently as possible.First, you will learn the basics of AngularJS: directives, expressions, filt转载 2015-08-04 09:17:30 · 619 阅读 · 0 评论 -
AngularJS Tutorial(7)from w3school
$http is an AngularJS service for reading data from remote servers.Providing Data The following data can be provided by a web server:http://www.w3schools.com/angular/customers.php{"r转载 2015-08-04 09:23:12 · 549 阅读 · 0 评论 -
AngularJS Tutorial(10)from w3school
AngularJS has directives for binding application data to the attributes of HTML DOM elements.The ng-disabled DirectiveThe ng-disabled directive binds AngularJS application data to the disabl转载 2015-08-04 09:25:20 · 701 阅读 · 0 评论 -
AngularJS Tutorial(13)from w3school
An AngularJS form is a collection of input controls.HTML ControlsHTML input elements are called HTML controls:input elementsselect elementsbutton elementstextarea elementsHTML Forms转载 2015-08-04 09:27:44 · 500 阅读 · 0 评论 -
AngularJS Tutorial(16)from w3school
Bootstrap is a popular style sheet. This chapter demonstrates how to use it with AngularJS.BootstrapTo include Bootstrap in your AngularJS application, add the following line to the head of转载 2015-08-04 09:30:07 · 465 阅读 · 0 评论 -
在web page中嵌入ace editor
1、在github上获取资源: git clone https://github.com/ajaxorg/ace-builds.git2、导入js插件: 3、定义div,关联editor: 4、定义editor,自动补全:原创 2015-09-17 11:35:02 · 1212 阅读 · 0 评论 -
AngularJS Tutorial(3)from w3school
AngularJS binds data to HTML using Expressions.AngularJS ExpressionsAngularJS expressions are written inside double braces: {{ expression }}.AngularJS expressions binds data to HTML the sa转载 2015-08-04 09:19:59 · 745 阅读 · 0 评论 -
AngularJS Tutorial(6)from w3school
Filters can be added to expressions and directives using a pipe character.AngularJS FiltersAngularJS filters can be used to transform data:FilterDescriptioncurrencyFormat a转载 2015-08-04 09:22:32 · 650 阅读 · 0 评论 -
AngularJS Tutorial(2)from w3school
AngularJS is a JavaScript framework. It can be added to an HTML page with a tag.AngularJS extends HTML attributes with Directives, and binds data to HTML withExpressions.AngularJS is a Ja转载 2015-08-04 09:18:34 · 552 阅读 · 0 评论 -
AngularJS Tutorial(5)from w3school
AngularJS controllers control the data of AngularJS applications.AngularJS controllers are regular JavaScript Objects.AngularJS ControllersAngularJS applications are controlled by controll转载 2015-08-04 09:21:44 · 617 阅读 · 0 评论 -
AngularJS Tutorial(9)from w3school
The code from the previous chapter can also be used to read from databases.Fetching Data From a PHP Server Running MySQLAngularJS Exampledivng-app="myApp" ng-controller="customersCtr转载 2015-08-04 09:24:34 · 610 阅读 · 0 评论 -
AngularJS Tutorial(11)from w3school
AngularJS has its own HTML events directives.The ng-click DirectiveThe ng-click directive defines an AngularJS click event. AngularJS Exampledivng-app="" ng-controller="myCtrl">转载 2015-08-04 09:26:07 · 459 阅读 · 0 评论 -
AngularJS Tutorial(12)from w3school
An AngularJS module defines an application.A module is a container for the different parts of an application.All application controllers should belong to a module.A Module With One Control转载 2015-08-04 09:26:47 · 760 阅读 · 0 评论 -
AngularJS Tutorial(15)from w3school
API stands for Application ProgrammingInterface.AngularJS Global APIThe AngularJS Global API is a set of global JavaScript functions for performing common tasks like:Comparing objects转载 2015-08-04 09:29:09 · 558 阅读 · 0 评论 -
AngularJS Tutorial(17)from w3school
With AngularJS, you can include HTML files in HTML.HTML Includes in Future HTMLIncluding a portion of HTML in HTML is, unfortunately, not (yet) supported by HTML.HTML imports is a W3C sugg转载 2015-08-04 09:30:43 · 607 阅读 · 0 评论 -
AngularJS Tutorial(4)from w3school
AngularJS lets you extend HTML with new attributes called Directives.AngularJS DirectivesAngularJS directives are extended HTML attributes with the prefix ng-.The ng-app directive initia转载 2015-08-04 09:20:46 · 629 阅读 · 0 评论 -
AngularJS Tutorial(18)from w3school
It is time to create a real AngularJS Single Page Application (SPA).An AngularJS Application ExampleYou have learned more than enough to create your first AngularJS application:My Note转载 2015-08-04 09:31:26 · 539 阅读 · 0 评论 -
windows下搭建python cgi编程环境
顺便把实习做的项目从unix系统转到windows下面来了。安装python,搭建机器学习开发环境前面的博客提过了,不写了。1、下载并安装apache:httpd-2.2.31-x64.zip,可以参见http://jingyan.baidu.com/article/29697b912f6539ab20de3cf8.html2、配置apache参数:修改配置文件 conf/httpd.原创 2015-09-21 18:40:25 · 7946 阅读 · 0 评论