bug 集合

1.xml文件报错:“The prefix "context" for element "context:property-placeholder" is not bound. ”  报错行数内容 <context:property-placeholder location="classpath:mongodb.properties" />

着说明context位置,这就说文件头没有context的引用

加xmlns:context="http://www.springframework.org/schema/context"就ok了,其他类似错误可以这样解决

2.拼json字符串,

 String strDate="[";
                for(int k=0;k<allDays.length;k++){
                    if(k==0){
                        strDate+=allDays[k];
                    }else{
                        strDate+=","+allDays[k];
                    }
                    JA.add(allDays[k]);
                }
                strDate+="]";  得到的是[2017-02,2017-03],正确的应该是["2017-03","2017-04"],还有就是创建jsonarray对象,直接add加入元素

3.同时引入多个juqery会导致modal不是一个方法

原文地址:https://www.cnblogs.com/longsanshi/p/7795415.html