引用JS报错:uncaught syntaxerror: unexpected token <
来源:互联网 发布:保险从业人员数据 编辑:程序博客网 时间:2024/06/05 01:40
框架:springmvc+easyui+shiro
session超时,发现页面跳转有问题,部分窗口跳转,于是本地做测试
1.本地web.xml配置session超时:2min
<session-config> <session-timeout>2</session-timeout> </session-config>
2.在登录页面引用js,并且做跳转
<script type="text/javascript" src="${baseurl}js/jquery.min.js"></script><script type="text/javascript">$(function(){if (window != top) top.location.href = location.href; });</script>
3.引用不生效,报错uncaught syntaxerror: unexpected token <
错误原因无非是引用文件出现问题,最终发现原来是shiro授权出了问题;如下,配置(/js/**=anon)即可
<!-- url访问策略 【URL级别权限控制】 --><property name="filterChainDefinitions"><value>/login.* = anon/delivery/**=anon/images/**=anon/styles/**=anon/batch/**=anon/css/**=anon/js/**=anon /** = authc</value></property>
0 0
- 引用JS报错:uncaught syntaxerror: unexpected token <
- js报错,Uncaught SyntaxError: Unexpected token }
- Js报错Uncaught SyntaxError: Unexpected token <
- JS 报错 “Uncaught SyntaxError: Unexpected token o”
- js报错:Uncaught SyntaxError: Unexpected token ILLEGAL
- js 使用eval函数 报错uncaught syntaxerror: unexpected token :
- myctrl.js报错: Uncaught SyntaxError: Unexpected token :
- 报错提示:Uncaught SyntaxError: Unexpected token )
- 引用js文件导致“Uncaught SyntaxError: Unexpected token <”的问题
- JS报错:Uncaught SyntaxError: Unexpected identifier
- js报错:uncaught syntaxError:unexpected tokenj
- 【error】jQuery.ajax()报错Uncaught SyntaxError: Unexpected token
- JSONP跨域问题报错 “Uncaught SyntaxError: Unexpected token :”
- 跨域请求报错 Uncaught SyntaxError: Unexpected token :
- Uncaught SyntaxError: Invalid or unexpected token 报错什么意思
- vue-router 报错"Uncaught SyntaxError: Unexpected token }"
- Uncaught SyntaxError: Invalid or unexpected token 报错
- css文件报错Uncaught SyntaxError: Unexpected token .
- c# 序列化
- VLAN端口属性详解
- Apache配置tomcat集群
- 驱动调试之虚拟机设置
- TOC(Table of Content)数据结构
- 引用JS报错:uncaught syntaxerror: unexpected token <
- iOS APP上架流程详解
- 业务系统上下游数据一致性检测系统(类似对账系统)
- Mongodb数据导出工具mongoexport和导入工具mongoimport介绍
- Spring JdbcTemplate 多参数查询,以及like模糊查询处理方式
- Scrapy - TypeError: Cannot convert unicode body - HtmlResponse has no encoding
- my97时间控件 选择多个日期
- 架构师 成长路----001
- ueditor-1.4.3集成SpringMVC