1. angular默认的请求头:其中,Accept 和 X-Requested-With是$http自带的默认配置2. 修改默认请求头: (1) 全局修改(整个模块) 使用$httpProvider依赖 var myApp = angular.module('MyApp',[]...
分类:
其他好文 时间:
2014-07-30 17:20:54
阅读次数:
169
在Javascript 中,有2种作用域,分为 全局作用域 ,和函数作用域,
在 浏览器端 , 全局作用域 就是 window对象的属性,
函数作用域 就是 ,某个 函数 生成的对象的属性;
var name = 'html5';
function Obj(){
this.name = 'CSS3'...
分类:
Web程序 时间:
2014-07-30 01:02:22
阅读次数:
286
下载httpd2.2.6,以前用http2.2.4会出问题(出现个什么lib的错误)./configure --prefix=/usr/local/apache --enable-ssl --enable-cgi --enable-mods-shared=all --with-mysql=/usr/...
分类:
其他好文 时间:
2014-07-29 17:32:02
阅读次数:
393
直接贴上Android.mk文件吧。对了,是cocos2d3.0的,不知道2.x是否一样。LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := cocos2dcpp_sharedLOCAL_MODULE_FILENAME :...
分类:
移动开发 时间:
2014-07-29 16:52:52
阅读次数:
224
#include
#include
#include
struct file_operations;
struct inode;
struct module;
struct cdev {
struct kobject kobj;
struct module *owner;
const struct file_opera...
分类:
系统相关 时间:
2014-07-29 14:18:28
阅读次数:
280
seajs 2.2.1在config文件中preload一次jquery,就可以在整个项目中使用jquery。如下:seajs.on('exec', function(module) { if (module.uri === seajs.resolve('jquery')) { win...
分类:
Web程序 时间:
2014-07-29 13:35:28
阅读次数:
238
PyGObject is a Python extension module that gives clean and consistent access to the entire GNOME software platform through the use of GObject Introspection. PyGObject provides full support of GObject Introspection and all of its features (callbacks, GVari...
分类:
编程语言 时间:
2014-07-29 13:04:47
阅读次数:
343
路径:phpcms/module/content/classes/content_tag.class.php 添加如下方法 /** * 列表页标签:主要返回的是主表中数据与附表中数据 * @param $data */ public function lists_al...
分类:
Web程序 时间:
2014-07-29 12:20:08
阅读次数:
240
apache2.2虚拟主机配置教程详解一、修改httpd.conf打开appserv的安装目录,找到httpd.conf文件,分别去掉下面两行文字前面的#号。#LoadModule vhost_alias_module modules/mod_vhost_alias.so 去掉#意思是启用apach...
分类:
其他好文 时间:
2014-07-28 14:51:43
阅读次数:
338
步骤:1 编译nginx,加上参数 --with-http_stub_status_module以我自己的编译选项为例: #配置指令 ./configure --prefix=/usr/local --user=nginx --group=nginx --with-http_...
分类:
其他好文 时间:
2014-07-28 14:26:03
阅读次数:
250