JS的跨域访问问题。http://www.cnblogs.com/rush/archive/2012/05/15/2502264.htmlJS能操作的范围:HTTP协议的内容。但是不能直接访问response。JS不能操作哪些内容。比如HTTP的一些内容。但是能操作cookie。JS可以直接发送We...
分类:
Web程序 时间:
2014-12-16 18:31:42
阅读次数:
170
response.sendRedirect("test2.jsp");window.location.reload("test2.jsp");location.href("test2.jsp");Javascript刷新页面的几种方法:1 history.go(0)2 window.location...
分类:
Web程序 时间:
2014-12-16 16:57:55
阅读次数:
149
以下代码,在执行结果中的中文出现乱码。from bs4 import BeautifulSoupimport urllib2request = urllib2.Request('http://www.163.com')response = urllib2.urlopen(request)html_d...
分类:
Web程序 时间:
2014-12-16 16:30:13
阅读次数:
199
java ,actionpublic void print(String rs){ PrintWriter out; try { HttpServletResponse response = ServletActionContext.getResponse(); response.set...
分类:
Web程序 时间:
2014-12-16 14:43:49
阅读次数:
124
相同之处 l 都是java技术开发的web组件 l 都是由特定的容器在管理 l 都可以动态产生各种内容 l 生命周期都是由容器管理 l 和客户端的交互通过request/response机制 不同之处 l Portlet只产生mark信息片段,而不是完整的网页,而portal会将portlet的ma...
分类:
其他好文 时间:
2014-12-16 11:25:45
阅读次数:
134
3. 账号 方法 _func=acc 可选参数 _key 账号口令 _rformat 结果格式,可选值:xml(默认)、json、html 成功返回值 XML <?xml version="1.0" encoding="utf-8"?> <response success="true"> ??? <result data...
php文件:test.php 是通用通信类
<?php
class Response {
const JSON = "json";
/**
* 按综合方式输出通信数据
* @param integer $code 状态码
* @param string $message 提示信息
* @param array $data 数据
* @param string $type 数据类...
分类:
移动开发 时间:
2014-12-15 19:08:43
阅读次数:
180
private void dgJiBingZhenDuanBind() { Response.Clear(); Response.Charset = "GB2312"; Response.ContentEncoding = System.Text.Encoding.GetEncoding(...
分类:
其他好文 时间:
2014-12-15 18:40:09
阅读次数:
155
前台:事件的名字自己命名后台:对应前台的事件名称里面的参数复制Page_Load事件里的参数就行protected void Login_Click(object sender, EventArgs e){ Response.Write("");}
分类:
其他好文 时间:
2014-12-15 16:51:09
阅读次数:
131
1. 招呼 方法 _func=hi 可选参数 _rformat 结果格式,可选值:xml(默认)、json、html 成功返回值 XML <?xml version="1.0" encoding="utf-8"?> <response success="true"> ??? <result dataType="string"> ?...