context.Response.ContentType=encode;using(StreamWriterwriter=newStreamWriter(context.Response.OutputStream,UTF8)){writer.Write(str);}上面代码常会报错:Bytes to...
分类:
其他好文 时间:
2014-10-14 20:15:59
阅读次数:
193
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>? <%@ taglib prefix="s" uri="/struts-tags" %>? <%? String path = request.getContextPath();? String basePath = request.getSch...
分类:
Web程序 时间:
2014-10-14 17:58:19
阅读次数:
286
这几天开始看公司的一套系统,整理的网站全局js代码/*文件名:base.js功能说明:全站通用的全局变量及公用方法创建日期:2010-09-26*///引入jquery库文件document.write("");//全局配置var GlobalSetting = { //站点名称 SiteName:...
分类:
Web程序 时间:
2014-10-14 16:43:32
阅读次数:
163
Given a string, write a routine that converts the string to a long, without using the built in functions that would do this. Describe what (if any) li...
分类:
其他好文 时间:
2014-10-14 13:01:28
阅读次数:
201
(1)Thinkphp的默认缓存方式是以File方式,在/Runtime/Temp 下生成了好多缓存文件。服务器装了memcached后想给更改成memecache方式在Conf/config.php 中添加'DATA_CACHE_TYPE' => 'Memcache','MEMCACHE_HOST...
分类:
Web程序 时间:
2014-10-14 12:49:48
阅读次数:
215
看原文请移步:编写 android.mk 中 LOCAL_C_INCLUDES 的技巧在编写android.mk的过程中,免不了要修改LOCAL_C_INCLUDES来设置头文件的include目录, 一般写成这样LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Cla...
分类:
移动开发 时间:
2014-10-14 12:49:38
阅读次数:
206
一、使用第三方变量实现变量值交换注意:C语言中没有template,C++中有templatevoid swap( T &val1, T &val2 ){ T temp = val1; val1 = val2; val2 = temp;}templatevoid swap( T *v1, T *v2...
分类:
其他好文 时间:
2014-10-14 12:09:38
阅读次数:
147
1:找到tomcat的conf目录 D:\apache-tomcat-6.0.18\conf 2:找到server.xml 加入如下配置 <Context docBase="D:\work\VCDP\WebRoot" path="" ???????? privileged="true" antiResourceLocking="false" an...
分类:
其他好文 时间:
2014-10-14 11:38:18
阅读次数:
196
一 os.path包
且看代码:
import os.path
path="/home/User/Document/test.txt"
print(os.path.basename(path)) # 查询路径中包含的文件名
print(os.path.dirname(path)) # 查询路径中包含的目录
info = os.path.split(path) ...
分类:
编程语言 时间:
2014-10-14 11:03:28
阅读次数:
210
asp.net中执行到Response.write("xx");之类语句或Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException: 无法分析从服务器收到的消息。之所以出现此错误,常见的原因是: 在通过调...
分类:
Web程序 时间:
2014-10-14 03:07:57
阅读次数:
309