要计算两个时间的差需要把两个时间都转换(strtotime)为时间戳格式(单位秒)floor(value) : 返回不大于value的下一个整数ceil(value) : 返回不小于value的下一个整数round(value,precision) : 对value进行四舍五入 ,precision...
分类:
Web程序 时间:
2014-06-27 18:42:49
阅读次数:
255
array( 'header' => '返回的服务器信息', 'name' => 'return_server_info', 'value' => 'str_replace("^", "", $data->return_server...
分类:
其他好文 时间:
2014-06-27 17:58:17
阅读次数:
175
userInteractionEnabledA Boolean value that determines whether user events are ignored and removed from the event queue.译:一个布尔值,它决定了是否用户触发的事件被该视图对象忽略和把...
分类:
其他好文 时间:
2014-06-27 17:35:22
阅读次数:
184
function dropKg(o){o.value=o.value.replace(/^(\s|\xA0)+|(\s|\xA0)+$/g, ''); }
分类:
Web程序 时间:
2014-06-27 17:34:41
阅读次数:
181
在Android当中,SharedPreferences是一种轻量级数据存储,以键值对形式操作;SharedPreferences的使用非常简单,能够轻松的存放数据和读取数据。SharedPreferences只能保存基本数据类型。 使用SharedPreferences保存key-value...
分类:
移动开发 时间:
2014-06-27 17:20:38
阅读次数:
273
function a(){ var v=document.getElementsByName("radio"); for(var i=0;i<v.length;i++){ if(v[i].checked==true){ alert(v[i].value); } } }
分类:
Web程序 时间:
2014-06-27 17:15:23
阅读次数:
316
1.$("#pk_id").val().replace(/\s/gi, '');2.document.getElementById('txt_id').value=document.getElementById('txt_id').value.replace(/\s/gi,'');
分类:
Web程序 时间:
2014-06-27 16:06:47
阅读次数:
233
Graph and QueriesTime limit: 3.000 secondYou are given an undirected graph withNvertexes andMedges. Every vertex in this graph has an integer value as...
分类:
其他好文 时间:
2014-06-27 15:37:28
阅读次数:
239
一、创建联系人1、创建联系人记录ABRecord person = ABPersonCreate();2、保存或修改单值属性bool ABRecordSetValue( ABRecordRef record, ABPropertyID property, CFTypeRef value, C...
分类:
移动开发 时间:
2014-06-27 15:28:29
阅读次数:
398
Bundle类是一个key-value对,“A mapping from String values to various Parcelable types.”类继承关系:java.lang.Object android.os.BundleBundle类是一个final类:public final....
分类:
移动开发 时间:
2014-06-27 15:16:23
阅读次数:
271