随笔 - 118,  文章 - 5,  评论 - 15,  阅读 - 17万
12 2013 档案
mysql select *... where id in (select 字符串 from ... )查询结果问题?
摘要:SQL中的写法为select id,TypeName from newcardtype where id in(select NewcardType from gamelist where id=43);查询结果为:id TypeName1 新手2 手机在MYSQL中select id,TypeName from newcardtype where id in(select NewcardType from gamelist where id=43);查询结果为:id TypeName1 新手少了一条数据.其中select NewcardType from gamelist wher... 阅读全文
posted @ 2013-12-10 17:32 mrma1989 阅读(6318) 评论(0) 推荐(0) 编辑
jQuery select的操作实现代码
摘要://改变时的事件$("#testSelect").change(function(){ //事件发生生 jQuery('option:selected', this).each(function(){ //遍历选中值 alert(this.value); }); }); //选到的项目方法1:$("select#Clubs").children("[@selected]").each(function(){ alert(this.text); }); 方法2:$("#selBags").val(); 阅读全文
posted @ 2013-12-04 14:17 mrma1989 阅读(317) 评论(0) 推荐(0) 编辑
jQuery.Validate常用的一些规则
摘要:// 手机号码验证jQuery.validator.addMethod("mobile", function(value, element) { var length = value.length; var mobile = /^(((13[0-9]{1})|(15[0-9]{1}))+\d{8})$/ return this.optional(element) || (length == 11 && mobile.test(value));}, "手机号码格式错误"); // 电话号码验证 jQuery.validator.addMet 阅读全文
posted @ 2013-12-04 14:12 mrma1989 阅读(427) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示