码迷,mamicode.com
首页 >  
搜索关键字:text/plain    ( 247个结果
生成html文件
第一步:建立一个MbPage.html页面第二步:后台生成 public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string mbPath = context.S...
分类:Web程序   时间:2015-04-14 16:37:20    阅读次数:121
CXF_Spring_Rest
一、接口类@Path("/rest_HelloWorld")public interface Rest_HelloWorld { @GET @Produces (MediaType.TEXT_PLAIN) @Path("/say/{name}") public String say(@Path...
分类:编程语言   时间:2015-04-12 13:24:35    阅读次数:229
为co-body增加xml等文本类型的支持
[co-body](https://github.com/cojs/co-body)是TJ大牛编写的使用`Generator`解析表单的模块。 当前`co-body`仅显示支持:`application/json`、`application/x-www-form-urlencoded`和`text/plain`,而有时候我们需...
分类:其他好文   时间:2015-03-28 10:16:42    阅读次数:120
form表单的enctype=‘multipart/form-data‘
enctype=‘multipart/form-data‘ HTML forms provide three methods of encoding. application/x-www-form-urlencoded (the default) multipart/form-data text/plain 上传文件的表单中<form>要加属性enctype="mu...
分类:其他好文   时间:2015-03-27 22:28:37    阅读次数:120
发邮件抛异常。no object DCH for MIME type text/plain; charset=UTF-8
在进行发邮件的时候抛出的这个异常: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=UTF-8  检查在站点的lib文件夹下和在tom...
分类:其他好文   时间:2015-03-16 17:54:27    阅读次数:163
NodeJs Http 外网访问
NodeJs 官方代码:example.js httpvar http = require('http');http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}...
分类:Web程序   时间:2015-03-11 12:21:41    阅读次数:743
调用系统分享功能
//分享文字 Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_TEXT, "要分享的文本。"); intent.setType("text/plain"); startActivity(Intent.createChooser(intent, "分享")); //分享图片 Uri uri =...
分类:其他好文   时间:2015-03-11 10:53:31    阅读次数:162
Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
http://www.2cto.com/os/201312/262437.html安装了VS2012之后,chrome在加载页面的时候会报 Resource interpreted as Script but transferred with MIME type text/plain 的警告。这是因...
分类:其他好文   时间:2015-02-27 09:58:53    阅读次数:93
nodejs学习
代码var http = require('http');http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n');}).....
分类:Web程序   时间:2015-02-21 16:35:11    阅读次数:179
247条   上一页 1 ... 18 19 20 21 22 ... 25 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!