zoukankan      html  css  js  c++  java
  • Uncaught ReferenceError: Invalid left-hand side expression in postfix operation(…)

    1、错误描述

    Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
    Uncaught ReferenceError: Invalid left-hand side expression in postfix operation
        
    at eval (<anonymous>)    
    at http://localhost:8080/mes/js/jquery-1.9.1.min.js:35:4904  
    at Function.globalEval (http://localhost:8080/mes/js/jquery-1.9.1.min.js:35:4915)  
    at text script (http://localhost:8080/mes/js/jquery-1.9.1.min.js:69:15505)  
    at Fn (http://localhost:8080/mes/js/jquery-1.9.1.min.js:69:15159)  
    at k (http://localhost:8080/mes/js/jquery-1.9.1.min.js:69:13895) 
    at r (http://localhost:8080/mes/js/jquery-1.9.1.min.js:69:18226)   
    at Object.send (http://localhost:8080/mes/js/jquery-1.9.1.min.js:69:18351)   
    at Function.ajax (http://localhost:8080/mes/js/jquery-1.9.1.min.js:69:13490) 
    at init.domManip (http://localhost:8080/mes/js/jquery-1.9.1.min.js:52:28746)
    Uncaught ReferenceError: Invalid left-hand side expression in postfix operation(…)
    

    2、错误原因

          Mybatis+springMVC配置的框架,后台接口路径为:student/findSome/stuId

          前台ajax方法里写成了:“student/findSome/”++stuId

          导致报错


    3、解决办法

         前台在写接口时需要注意路径以及参数写法

         "student/findSome/"+stuId

  • 相关阅读:
    浅谈C++多态性
    OSI七层模型具体解释
    文本框仅仅同意输入数字
    MessageDigest简单介绍
    CF 161D Distance in Tree【树DP】
    第六届蓝桥杯JavaA组国(决)赛真题
    Java实现 蓝桥杯 历届真题 稍大的串
    Java实现 蓝桥杯 历届真题 稍大的串
    Java实现 蓝桥杯 历届真题 稍大的串
    Java实现 蓝桥杯 历届真题 稍大的串
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313972.html
Copyright © 2011-2022 走看看