码迷,mamicode.com
首页 >  
搜索关键字:require    ( 6509个结果
js 实现 di
前些时候有使用过AngularJS一些时间,最大的感受就是Angular完全颠覆了我们开发Web应用的方式,自己被其许多耳目一新的设计思想所折服。首先想说的就是依赖注入(DI),这也意味着,你在使用某一个模块时,不需要去手动require()一下,你需要的模块会自己注入到的函数所在的作用域中,如:J...
分类:Web程序   时间:2014-12-22 22:41:21    阅读次数:256
使用require.js时,解决AMD封装jquery1.4.1的问题。
require.config({ baseUrl: "js/", paths: { "jquery": "jquery-1.4.1.min"//jquery-1.10.2.min }});require(["jquery"], function (jQ) { c...
分类:Web程序   时间:2014-12-22 16:09:36    阅读次数:122
TP 自动验证
#自动验证 一般验证 #自动验证 protected $_validate=array( #函数验证 array('role_name','require','角色名称不能为空!'), array('privilege_id','require','拥有的权限不能...
分类:其他好文   时间:2014-12-22 14:21:57    阅读次数:131
PHP中require和include路径问题总结
1 绝对路径、相对路径和未确定路径相对路径相对路径指以.开头的路径,例如./a/a.php (相对当前目录) ../common.inc.php (相对上级目录),绝对路径绝对路径是以 / 开头或者windows下的 C:/ 类似的盘符开头的路径,全路径不用任何参考路径就可以唯一确定文件的最终...
分类:Web程序   时间:2014-12-22 00:50:38    阅读次数:236
【oracle】oracledba14 archived log files
The loss of which two types of files may require a recovery with  the RESETLOGS option?(Choose two.)   A. control files   B. password file   C. archived log files   D. system-critical data files ...
分类:数据库   时间:2014-12-21 22:08:34    阅读次数:249
中国寒龙出品-Windows IE浏览器OLE自动化阵远程执行代码漏洞
### This module requires Metasploit: http://metasploit.com/download# Current source: https://github.com/rapid7/metasploit-framework##require 'msf/core...
分类:Windows程序   时间:2014-12-21 00:39:09    阅读次数:360
Ruby1.9.3-下载网络图片至本地,并按编号保存。
#本程序功能:下载网络图片至本地,并按编号保存。#使用Ruby1.9.3在winxp_sp3下编写。require 'nokogiri'require 'open-uri'#以下 根据网址解析网页。page = Nokogiri::HTML(open("http://www.169bb.com/Ne...
分类:其他好文   时间:2014-12-20 23:20:46    阅读次数:214
ruby关于require路径
require './aaaa'这种方式,在ruby里面,略微蛋疼,测试+google以后,发现还是全路径比较靠谱,这个略显蛋疼大概这样require File.dirname(__FILE__) + "/" + "./src/xxxx"xxxx为rb脚本,好吧,土了点,但是可用。一个傻瓜式gemh...
分类:其他好文   时间:2014-12-20 22:02:20    阅读次数:398
freemarker.template.TemplateException:Error executing macro:mainSelect
1、错误描述     freemarker.template.TemplateException:Error executing macro:mainSelect     require parameter:id is not specified 2、错误原因     在定义宏时,给了一个必填的参数id,但是在用的时候没有给id赋值 3、解决办法      给id赋...
分类:系统相关   时间:2014-12-20 15:35:54    阅读次数:199
[MODX] 3. Placeholder +
A chunk may be used in many pages, different page may require different style.We can use Placeholder to pass in the value.[[+placeholder_name]]For exm...
分类:其他好文   时间:2014-12-19 23:19:29    阅读次数:295
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!