摘要:
1.如果转换的是Map、或者是简单的对象 package com.gc.action; import java.util.Map; import net.sf.json.JSONObject; /** * 1.json string 转换为 map * 2.json string 转换为 对象 * 阅读全文
摘要:
表达式 (expr1) ? (expr2) : (expr3) 在 expr1 求值为 TRUE 时的值为 expr2,在 expr1 求值为 FALSE 时的值为 expr3。 expr1如果不是false, 0, undefined, NaN, "" or null,js都认为是true; 阅读全文