zoukankan      html  css  js  c++  java
  • 那些年踩过的坑

    1、今天在开发功能的时候,有个地方是用easyui方式提交form 表单,但controller始终接收不到参数(值未null),郁闷半天,后来发现是form表单的method没有写

    <form action="" id="endRateSearch"  method="post">
    </form>
    要以post的方式提交,

      js部分代码:

    $ ('#' + searchFormId).form ('submit',
        {
            url : url,
            success : function (data)
            {
                var data = eval ('(' + data + ')');
                parent.parent.parent.$ ('#exlLoadingDiv').css ("display", "none");
            },
            error : function (XMLHttpRequest, textStatus, errorThrown)
            {
                console.log ("数据加载出错");
                parent.parent.parent.$ ('#exlLoadingDiv').css ("display", "none");
            }    
        });

    2、eclipse 启动Tomcat报错: java.lang.OutOfMemoryError: PermGen space ;

      点击“Run” – “Run Configurations…”,选中Tomcat Server,点击Arguments分页,在VM arguments 末尾加入提升初始分配空间的参数 ,

           加入参数: -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256M    ;

    3、未完待续

      

  • 相关阅读:
    模板方法设计模式
    单一职责原则
    开闭原则
    uml
    迭代器模式
    观察者模式
    工厂模式
    代理模式
    idea本地Maven仓库不能下载依赖jar包的解决方案
    selenium 使用教程详解-java版本
  • 原文地址:https://www.cnblogs.com/sdll/p/7541708.html
Copyright © 2011-2022 走看看