本文摘自:http://www.cnblogs.com/xcj1989/archive/2011/06/29/JQUERY_RADIO.html /*---------------------------JQuery判断radio是否选中,获取选中值----------------------------------*/ 其他对radio操作功能,以后在添加.直接上代码,别忘记引用JQuery包 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
http://jsfiddle.net/sxGtM/3/http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery /*把表单转成json,并且name为key,value为值*/ $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { i
一 .for in 循环 1.获取json中的键(key)与值(value): var data = {name:'张三',age:'20岁',sex:'男'}; for (var a in data) { console.log(a); /*属性名*/ console.log(data[a]); /*属性值*/ }; 2.获取数组中的值 var a = ['apple','banana','pear']; for(var i in a){ console.log(i); /*在数组中的位置*/
use UserCentergo select * from AccountDetails1.判断一个字段是否为null值,进行查询:update AccountDetails set ProjectCode ='w88' where ProjectCode is null 2.这一种写法是错误的 update AccountDetails set ProjectCode ='w88' where ProjectCode = null
1 为避免header()函数是,出现 <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /var/www/test.php:5) in <b>/var/www/test.php</b> on line <b>6</b><br /> 错误,我们可以在进行header()导向跳转时,使用