04 2011 档案

深入理解Android消息处理系统——Looper、Handler、Thread(转)
摘要:Android应用程序也是消息驱动的,按道理来说也应该提供消息循环机制。实际上谷歌参考了Windows的消息循环机制,也在Android系统中实现了消息循环机制。Android通过Looper、Handler来实现消息循环机制,Android消息循环是针对线程的(每个线程都可以有自己的消息队列和消息循环)。本文深入介绍一下Android消息处理系统原理。 Android系统中Looper负责管理线程的消息队列和消息循环,具体实现请参考Looper的源码。 可以通过Loop.myLooper()得到当前线程的Looper对象,通过Loop.getMainLooper()可以获得当前进程的主线程的 阅读全文

posted @ 2011-04-27 10:50 小山丘 阅读(804) 评论(0) 推荐(2)

jQuery对表格的操作
摘要:jQuery对表格的操作表格变色<table><thead><tr><th>姓名</th><th>性别</th><th>暂住地</th></thead><tbody><tr><td>张山</td><td>男</td><td>浙江</td></tr><tr><td>张山</td><td>男</td><td& 阅读全文

posted @ 2011-04-07 23:49 小山丘 阅读(3445) 评论(0) 推荐(0)

jquery对表单操作_表单验证
摘要:表单验证<formmethod="post"action=""><divclass="int"><labelfor="username">用户名:</label><inputtype="text"id="username"class="required"/></div><divclass="int"><labelfor="email&qu 阅读全文

posted @ 2011-04-06 20:50 小山丘 阅读(638) 评论(0) 推荐(0)

jquery对表单操作2
摘要:checkbox的级联效果<form>你爱好的运动?<br/><inputtype="checkbox"id="CheckedAll"/>全选/全不选<br/><inputtype="checkbox"name="items"value="足球"/>足球<inputtype="checkbox"name="items"value="篮球"/>篮球<inputt 阅读全文

posted @ 2011-04-06 17:57 小山丘 阅读(217) 评论(0) 推荐(0)

jQuery对表单的操作
摘要:改变文本框的获得焦点的样式<formaction="#"method="POST"id="regForm"><fieldset><legend>个人基本信息</legend><div><labelfor="username">名称:</label><inputid="username"type="text"></div></fieldset></for 阅读全文

posted @ 2011-04-06 09:15 小山丘 阅读(491) 评论(0) 推荐(0)

jQuery中的动画
摘要:show(param)和hide(param)方法$("element").hide() 的效果和 $("element").css("display", "none") 效果相同。注意在hide()方法将"内容"的display属性值设置为"none"之前,会记住原先的display属性值。 参数:param 可选。 "slow"(0.6),"normal"(0.4), "fast"(0.2)或者时间以毫秒为单位。 阅读全文

posted @ 2011-04-05 22:57 小山丘 阅读(773) 评论(0) 推荐(0)

jQuery中的事件
摘要:事件绑定函数:bind(type, [, data], fn);3个参数说明如下:type: blur: 元素失去焦点 a, input, textarea, button, select, label, map, area focus:元素获得焦点 a, input, textarea, button, select, label, map, area load: 某个页面或图像完成加载。window, img resize: 窗口或框架被调整尺寸. window, iframe, frame scroll: 滚动文档的可视部分。window unload: 用户退出页面。window cl 阅读全文

posted @ 2011-04-02 11:09 小山丘 阅读(519) 评论(0) 推荐(0)

jQuery表单插件
摘要:jQuery表单插件Form有两个核心方法--ajaxForm()和ajaxSubmit() 下载地址:http://malsup.com/jquery/form#download代码实例:<scriptsrc="jquery.js"type="text/javascript"></script><scriptsrc="jquery.form.js"type="text/javascript"></script><scripttype="text/ja 阅读全文

posted @ 2011-04-02 09:06 小山丘 阅读(511) 评论(0) 推荐(0)

jQuery表单验证插件的使用
摘要:jQuery表单验证插件下载地址:http://plugins.jquery.com/project/validate直接上代码了View Code <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"lang="GBK"><hea 阅读全文

posted @ 2011-04-01 11:16 小山丘 阅读(2029) 评论(0) 推荐(1)

导航