摘要:
jquery,字符串转json对象,json对象转字符串 字符串转json对象 方法一:var json = eval('(' + str + ')'); 方法二:return JSON.parse(str); json对象转字符串 JSON.stringify(jsonobj); //可以将jso 阅读全文
摘要:
当用$.ajax()向后台提交参数时,如果参数中数组的话一般在后台会用List,或Integer[] 等数组对象进行接收. 比如: $.ajax({ type: "POST", url: url, data:{ gender:[0,1] }, dataType: "json", async:fals 阅读全文
摘要:
Sql Server中实现Mysql中的group_concat函数效果 SELECT oi.*, stuff((select ','+convert(varchar(25), GuestName) FROM guest g WHERE g.ordersn = oi.OrderSN AND oi.I 阅读全文
摘要:
作为一个更为复杂的示例,正则表达式B[an]*s匹配下述字符串中的任何一个:Bananas,Baaaaas,Bs,以及以B开始、以s结束、并在其中包含任意数目a或n字符的任何其他字符串。 以下是可用于随REGEXP操作符的表的模式。 应用示例,查找用户表中Email格式错误的用户记录: ? 1 2 阅读全文
摘要:
/** * 使用CablleStatement调用存储过程 * @author APPle * */ public class Demo1 { /** * 调用带有输入参数的存储过程 * CALL pro_findById(4); */ @Test public void test1(){ Conn 阅读全文
摘要:
<script language="javascript"> String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.ltrim=function(){ retur 阅读全文
摘要:
jsp中常用操作字符串的el表达式 由于在JSP页面中显示数据时,经常需要对显示的字符串进行处理,SUN公司针对于一些常见处理定义了一套EL函数库供开发者使用。准备工作:1)导入jar包:standard.jar和jstl.jar2)在页面中使用JSTL定义的EL函数:<%@ taglib uri= 阅读全文
摘要:
import javax.script.ScriptEngine;import javax.script.ScriptEngineManager;import javax.script.ScriptException; public class CalculationTest { /** * @pa 阅读全文
摘要:
<select id="selectSelective" resultMap="xxx" parameterType="xxx"> select <include refid="Base_Column_List"/> from xxx where del_flag=0 <choose> <when 阅读全文