摘要: android studio sdk 升级到23后 setLatestEventInfo被完全弃用api11 之前的机型可以使用v4包下的NotificationCompat实现 1 import android.support.v4.app.NotificationCompat; 2 Notifi 阅读全文
posted @ 2015-11-30 11:37 荣超 阅读(232) 评论(0) 推荐(0) 编辑
摘要: <form action="" method="post" enctype="multipart/form-data" id="表单ID"> <input type="text" name="name"> <input type="file" name="file"> </form> 需要使用下面的 阅读全文
posted @ 2015-11-05 16:16 荣超 阅读(181) 评论(0) 推荐(0) 编辑
摘要: <meta charset='utf-8'> <!-- 优先使用 IE 最新版本和 Chrome --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <!-- 页面描述 --> <meta name="descrip 阅读全文
posted @ 2015-11-04 14:26 荣超 阅读(528) 评论(0) 推荐(0) 编辑
摘要: $.pjax({container:'#content_center',url:href,data:data}); $(document).on('pjax:send', function() {//pjax链接点击后显示加载动画; //显示动画 }); $(document).on('pjax:c 阅读全文
posted @ 2015-11-02 17:11 荣超 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 使用rs.close关闭后,可以直接用rs.open来打开数据表;如果用了set rs = nothing 从内存中清除rs对象,再次加载rs对象就需要使用set rs=server.createobject("adodb.recordset")重新创建对象;如果没有用set rs = nothin... 阅读全文
posted @ 2015-09-28 10:35 荣超 阅读(610) 评论(0) 推荐(0) 编辑
摘要: sqlserver ntext 字段在读取时返回值 net.sourceforge.jtds.jdbc.ClobImpl@555bc78f 需要在连接数据库的URL后边加上";useLOBs=false"。 阅读全文
posted @ 2015-09-17 09:55 荣超 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 需要使用异步加载async : true 否则不会出现等待效果 $.ajax({ url : $('#form').attr("action"), data: $('#form').serialize(), cache : false,//true使用缓存 。 false不使用缓存 async : 阅读全文
posted @ 2015-09-14 14:12 荣超 阅读(2524) 评论(0) 推荐(0) 编辑
摘要: 获取数据时需要进行转码 item.getString("网站使用编码utf-8,GBK等"); public class FileUpLoad extends HttpServlet { public void doPost(HttpServletRequest request, HttpServl 阅读全文
posted @ 2015-08-20 14:40 荣超 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Spring MVC从3.0开始支持REST,而主要就是通过@PathVariable来处理请求参数和路径的映射。由于考虑到SEO的缘故,很多人喜欢把新闻的名称作为路径中的一部分去处理,这时候中文的名称就会遇到问题,没办法映射,这个是因为编码问题,只要到TOMCAT/conf下找到server.xm 阅读全文
posted @ 2015-06-12 09:17 荣超 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 比如select gid from table group by gid 查询时使用下面的方法查询条数 select count(distinct gid) from table 使用select count(gid) from table group by gid是错误的 这样查询的是分组后 每个 阅读全文
posted @ 2015-06-09 10:52 荣超 阅读(1471) 评论(0) 推荐(0) 编辑