标签:iter highlight indexof npm fresh syn browser 浏览器 request
窗体改成固定尺寸方式
接口加密不能用zip压缩
vuejs兼容性
https://cli.vuejs.org/zh/guide/browser-compatibility.html#polyfill
只支持对es5以上支持的浏览器,ie8以下不支持
添加babel兼容性
打开项目时删除目录node_modules 重新 cnpm install
1.1 字符串不要使用indexOf查找(空白页)
1.2 不要使用懒加载(加载不了视图)
1.3 vue.epg集点fource不触发(采用按钮按下时触发事件获取事件)
2.华为机顶盒问题
1.1 URL中带#会转为%23,会导致404(web容器里添加过滤器或跳转用js跳转)
locatin.href="...";
public class MyFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest=(HttpServletRequest) request; String reqUri = httpServletRequest.getRequestURI(); if(reqUri.indexOf("/%23/") > -1){ reqUri = reqUri.replace("/%23/", "/#/"); response.getWriter().println(String.format("<html><header><meta http-equiv=\"Refresh\" content=\"0.2;url=%s\" /></header></html>", reqUri)); }else { chain.doFilter(request, response); } } @Override public void destroy() { } }
<filter> <filter-name>myFilter</filter-name> <filter-class>******.MyFilter</filter-class> </filter> <filter-mapping> <filter-name>myFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
标签:iter highlight indexof npm fresh syn browser 浏览器 request
原文地址:https://www.cnblogs.com/Guroer/p/13228597.html