require引用其他controllervar app = angular.modeule('myapp',[]);app.directive('common',function(){ return { ... controller: function($scope){ ...
分类:
其他好文 时间:
2015-06-23 00:51:58
阅读次数:
119
先上代码private function moldforExt(){//模板单层For循环处理 $SQL=$this->sql_obj; $URL=$this->url_obj; require($this->dataFile); $con=$this->moldFileContent; ...
分类:
其他好文 时间:
2015-06-21 14:19:53
阅读次数:
184
原文:thinkphp3.2入口文件 <?php define('DIR_SECURE_FILENAME', 'default.html');//错误页面 define('APP_PATH','./myapp/'); //项目路径 require './ThinkPHP/ThinkPHP.php';...
分类:
Web程序 时间:
2015-06-20 06:53:33
阅读次数:
186
var?http?=?require(‘http‘);
http.createServer(function?(req,?res)?{
??console.log(req.url);
??console.log(req.method);
??console.log(‘-------------------------------------------‘);
??...
分类:
Web程序 时间:
2015-06-19 16:59:31
阅读次数:
116
declare -- Non-scalar parameters require additional processing files tyt_gas2014_search; temp tyo_gas2014_search:=tyo_gas2014_search('CRE...
分类:
数据库 时间:
2015-06-19 13:15:37
阅读次数:
141
mime中间件Demo,里面用到的有1.path模块 //引入模块var path=require('path');2.extname方法 //获取文件的扩展名var extname=path.extname(realPath)var path=require('path'); mime={ ...
分类:
其他好文 时间:
2015-06-18 15:18:47
阅读次数:
109
yii2-admin是yii2 rbac的一套管理工具,实现了漂亮的界面和完整的权限管理功能,不用自己再去写权限代码了,使用之前请将yii2的源码更新到最新版本.
git源码地址:https://github.com/mdmsoft/yii2-admin
安装yii2-admin:
1、首先切换到项目目录下
2、执行该语句:composer.phar require mdmsoft/y...
分类:
其他好文 时间:
2015-06-18 13:32:41
阅读次数:
142
echarts require.config is not a function
分类:
其他好文 时间:
2015-06-18 09:25:03
阅读次数:
159
正在跟随上面的教程一步一步做,在会话支持那一节中安装 connect-mongo 后,添加:var MongoStore = require('connect-mongo')(express);var settings = require('./settings');和app.use(express...
分类:
其他好文 时间:
2015-06-18 09:23:10
阅读次数:
95
1.模块概念 原生模块:Node.js API 提供的原生模块,原生模块在启动时已经被加载。 文件模块:动态加载模块,由原生模块 module 来实现和完成。 文件模块需要通过调用 require 方法来实现加载。 Node.js 对两种模块都有缓存,不会重复开销去加载模块,只读取...
分类:
Web程序 时间:
2015-06-18 08:12:20
阅读次数:
190