概述:基础知识还是比较薄弱啊,今天在做项目都有点不记得了,还是写下来以防万一吧
Created by IntelliJ IDEA.
User: Administrator
Date: 15-1-19
Time: 上午11:31
To change this template use File | Settings | File Templates.
--%>
String header = (String)request.getAttribute("mpHeader");
String id = (String)request.getAttribute("id");
if(header.indexOf("MicroMessenger")==-1){//判断是否是微信浏览器
try {
response.sendRedirect("mp_ajax_vcf.html?id="+id);//如果是就异步跳转,如果不是就执行接下去
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
%>
通讯录//获取项目根目录