使用JS(JQuery的JSONP)跨域调用WebService需要注意的几点细节:Web服务写法、Web.config配置、前台调用
分类:
Web程序 时间:
2014-05-16 01:17:53
阅读次数:
439
整理下,参考了许多库,谢谢那些无私奉献的大牛,愿上帝保佑你们。1、构造器采用驼峰式命名,并且首字母大写。如:function DialogManager (
config ) { statement;}2、枚举类型变量采用驼峰式命名,并且首字母大写。属性名单词全部大写,单词间以下划线分隔。如:...
分类:
编程语言 时间:
2014-05-15 21:42:06
阅读次数:
385
从客户端检测到有潜在危险的Request.Form值:在webForm中,可以在aspx页面顶部中加一句 ValidateRequest="false"
。或者在web.config文档后面加入这一句: ,例如: 在MVC中,可以在controller里面加[...
分类:
Web程序 时间:
2014-05-15 21:32:22
阅读次数:
398
最近开发那边发现有一个SSH连接的问题,每次他从他的虚拟机连接我们这边服务器的时候,都会出现验证速度慢,要经过很长时间的没响应过程。研究了一下,发现是这样:SSH的配置文件sshd_config里有这么一个参数:vi
/etc/ssh/sshd_config将GSSAPIAuthentication...
分类:
其他好文 时间:
2014-05-15 21:23:01
阅读次数:
227
After ASP.NET 3.5 has been installed you need
to modify the web.config file of your MOSS web site with a few Ajax specific
entries. Typically, the web...
分类:
Web程序 时间:
2014-05-15 21:16:22
阅读次数:
528
打开 /usr/local/php/etc/php-fpm.conf
调大以下两个参数(根据服务器实际情况,过大也不行) 5120 600
分类:
其他好文 时间:
2014-05-15 21:12:11
阅读次数:
206
server{if(!-e$request_filename){rewrite^(.*)$/index.phplast;}}如果if没有放在location时,在做memc缓存时,在错误日志里会提示以下信息2014/05/1210:45:51[error]11520#0:*325726srcache_fetch:cachesenttruncatedresponsebodywhilesendingtoclient,client:192.168.3.124,..
分类:
其他好文 时间:
2014-05-15 19:02:44
阅读次数:
350
#!/bin/bash
#function:cutnginxlogfilesshell
#cp/usr/local/nginx/logs/access.log/usr/local/nginx/logs/access.log.bak
log_cut_path="/var/log/nginx"
log_files_path="/usr/local/nginx/logs/"
log_files_dir=${log_cut_path}$(date-d"yesterday"+"%Y")/$(date-d"yesterd..
分类:
其他好文 时间:
2014-05-15 18:49:50
阅读次数:
244
一、环境ubuntu12.04.4nginx 1.6.0mariadb 10.0更新系统补丁sudo
apt-get updatesudo apt-get dist-upgrade -y挂载swap分区dd
if=/dev/zeroof=/media/fasthdd/swapfile.img bs=...
分类:
数据库 时间:
2014-05-15 17:23:21
阅读次数:
1622
web.config中:节格式: //I.Windows: 使用IIS验证方式 II.Forms:
使用基于窗体的验证方式 III.Passport: 采用Passport cookie验证模式 IV.None: 不采用任何验证方式 //I.Name:
指定完成身份验证的Http cookie的名....
分类:
其他好文 时间:
2014-05-15 17:12:14
阅读次数:
279