1. radio赋值 [code="javascript"] $('[name=strategyPeriod][value=${empty collectStrategy ? 1 : collectStrategy.strategyPeriod}]').attr("checked",'checked'); $('[name=strategyMode][value=${empty collectStrategy ? 1 : collectStrategy.strategyMode}]').click(); [/code] 2. 弹出层--使用thickbox 打开js源码查看调用函数: 弹出层:tb_show("ssss", "#TB_inline?height=300&width=300&inlineId=testID") 关闭层:parent.tb_remove(); 3. 判断包装集是否满足一种条件使用is('')函数 4. 判断电话号码 $.validator.addMethod("telephone", function(val, element) { var length = val.length; var mobile = /^((0?1[358]\d{9})|([1-9]\d{6,7}))$/; return this.optional(element) || mobile.test(val); }, "电话号码格式错误");