摘要: <input type="text" id="range_complete" /> $('#range_complete').val();//取值 $('#range_complete').val(vm.task.status);//赋值 <span id="lblcomplete"></span> 阅读全文
posted @ 2016-07-28 16:43 fanhq 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: Array类可以如下定义: var aValues = new Array(); 如果预先知道数组的长度,可以用参数传递长度 var aValues = new Array(20); 如下2种定义方式是一样的 1 var aColors = new Array(); aColors[0] = "re 阅读全文
posted @ 2016-07-07 10:59 fanhq 阅读(351) 评论(0) 推荐(0) 编辑
摘要: // 自动大写 android:textAllCaps="true" 阅读全文
posted @ 2016-06-28 13:58 fanhq 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: 读取xml <?xml version="1.0"?><polylines><polyline lng="-95.4559164321882" lat="29.7509523707259" /><polyline lng="-95.4591338344543" lat="29.73721761506 阅读全文
posted @ 2016-06-23 16:20 fanhq 阅读(130) 评论(0) 推荐(0) 编辑
摘要: private void doClockInOut(JSONObject params) { Response.Listener okListener = new Response.Listener() { @Override public void onResponse(JSONObject response) { ... 阅读全文
posted @ 2016-05-13 09:59 fanhq 阅读(181) 评论(0) 推荐(0) 编辑
摘要: try { mTimerGoOut = new Timer(); SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy-MM-dd", Locale.US); SimpleDateFormat sdf4 = new Simple... 阅读全文
posted @ 2016-05-13 09:56 fanhq 阅读(152) 评论(0) 推荐(0) 编辑
摘要: package com.baclock.entity; import android.provider.BaseColumns; /** * Created by Jack on 5/4/2016. */ public final class DBEntity { // To prevent someone from accidentally instantiating the ... 阅读全文
posted @ 2016-05-13 09:44 fanhq 阅读(224) 评论(0) 推荐(0) 编辑
摘要: String message = "You should click come back now. It is time out more than 10 minutes."; // MessageDialog.showMessageDialog(MainActivity.act, message); Intent intent = new Int... 阅读全文
posted @ 2016-05-13 09:34 fanhq 阅读(219) 评论(0) 推荐(0) 编辑
摘要: String s = "Thu Dec 24 17:33:00 GMT+08:00 2015"; SimpleDateFormat sdf=new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy",Locale.ENGLISH); Date dd = sdf 阅读全文
posted @ 2016-05-13 09:28 fanhq 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 如红色部分所示,需在Adapter添加setData方法,当 listData中数据更改后,调用setData,为Adapter设置新的数据,此时调用notifyDataSetChanged() 就可以刷新内容了。 package com.baclock.adapter;import android 阅读全文
posted @ 2016-03-21 16:15 fanhq 阅读(297) 评论(0) 推荐(0) 编辑