码迷,mamicode.com
首页 >  
搜索关键字:require    ( 6509个结果
CommonJs的模块规范
CommonJs对模块的定义主要分为模块引用、模块定义、模块标识3个部分。1.模块引用模块引用的示例代码如下:var math = require("match");2.模块定义在模块化中,上下文提供require()方法来引入外部模块。对应引入的功能,上下文提供了exports对象用于导出当前模块...
分类:Web程序   时间:2015-01-22 19:50:40    阅读次数:385
HTML5验证输入框
HTML5知识:定义默认值:placeholder="用户名" 验证不为空:required='required' oninput="setCustomValidity('');" oninvalid="setCustomValidity('用户名不能为空')" 一定要加这个:require...
分类:Web程序   时间:2015-01-22 15:07:27    阅读次数:238
laravel权限控制
PermissionsTiny Laravel 4 package for handling user roles and permissions.InstallationAdd the following to the require key of your composer.json file:...
分类:其他好文   时间:2015-01-22 10:56:49    阅读次数:614
r.js压缩代码常用的配置及命令
r.js压缩由require写好的模块文件,js&css
分类:Web程序   时间:2015-01-22 00:06:58    阅读次数:207
Echarts图标学习
1:步骤 引入ECharts,你需要如下4步: 为ECharts准备一个具备大小(宽高)的Dom 通过script标签引入echarts主文件 为模块加载器配置echarts的路径,从当前页面链接到echarts.js所在目录 动态加载echarts及所需图表然后在回调函数中开始使用(确保同一页面已经加载过echarts,再使用时直接require('echarts').init...
分类:其他好文   时间:2015-01-20 13:46:27    阅读次数:302
phantomjs form提交
phantomjs表单提交,其实就是对DOM就行操作(获取元素),在这里实现了动态传入各种参数不说了 直接上代码 1 var page = require('webpage').create(), 2 system = require('system'),fname; ...
分类:Web程序   时间:2015-01-20 13:37:00    阅读次数:106
nodejs抓网易NBA数据
var http = require("http");var cheerio = require("cheerio");var url = "http://nba.sports.163.com/2014/team/structure/17.html"; download(url, function(...
分类:Web程序   时间:2015-01-19 18:45:48    阅读次数:138
uva 213 Message Decoding
Description  Message Decoding  Some message encoding schemes require that an encoded message be sent in two parts. The first part, called the header, contains the character...
分类:其他好文   时间:2015-01-19 15:47:44    阅读次数:149
处理关键字(织梦关键词提取功能)
I‘m sorry 提取的是织梦关键词加载功能附件下载:http://files.cnblogs.com/subtract/关键词提取.zip使用步骤:1.加载 splitword.class.php 文件并提取1 require_once './../splitword.class.php'; ....
分类:其他好文   时间:2015-01-17 17:45:56    阅读次数:186
花式ERROR产品样本——OC部分(持续更新)
这个是我们学习OC过程中出现的各种奇怪ERROR,具体ERROR分类还没想好,先做成合集吧。当然 我会尽量回忆学习C时出现的ERROR,也做一个合集。第一个ERRORform:旗木*卡卡西require:定义?个block,返回值为NSInteger,有两个参数,?个是 NSArray,?个是NSS...
分类:其他好文   时间:2015-01-17 12:30:58    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!