文章列表
js MAP
- 博客分类:
- JavaScript/AJAX
<!--
var Map=function(){
this.mapArr={};
this.arrlength=0;
//假如有重复key,则不存入
this.put=function(key,value){
if(!this.containsKey(key)){
this.mapArr[key]=value;
this.arrlength=this.arrlength+1;
}
...
JSON字段过滤器
- 博客分类:
- JavaScript/AJAX
public static JSONObject getSubNodeJson(List<Person> nodes) {
JsonConfig jsonConfig = new JsonConfig();
JSONObject json = new JSONObject();
//字段过滤器
jsonConfig.setJsonPropertyFilter(new PropertyFilter() {
@Override
public boolean apply(Object source, String name, Objec ...
applicationContext-webservice.xml
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<!-- 使用XFire导出器 -->
<bean id="baseXFireExporter" class="org.codehaus.xfire.spring.remoting.XFireExporter"
lazy-init="false" abstra ...