(转载自http://fp-moon.iteye.com/blog/1142629)使用navigator.userAgent来判断浏览器类型。1、浏览器版本号函数:Js代码varbr=navigator.userAgent.toLowerCase();varbrowserVer=(br.match...
分类:
其他好文 时间:
2015-07-25 01:37:59
阅读次数:
240
1.头部布局文件top.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/tit...
分类:
微信 时间:
2015-07-24 14:23:24
阅读次数:
337
1.头部布局文件top.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/tit...
分类:
微信 时间:
2015-07-24 14:22:10
阅读次数:
236
启动第二个Activityactivity_main.xml文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:la...
分类:
其他好文 时间:
2015-07-23 23:53:43
阅读次数:
138
Marriage Match IV
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2470 Accepted Submission(s): 742
Problem Description
Do not si...
分类:
其他好文 时间:
2015-07-23 22:01:06
阅读次数:
162
我们在处理数据时,重复数据常常会对分析造成很大麻烦,因此数据整理初期一个重要的工作是排重,excel2007以上版本中有一个删除重复项功常便捷,但是每次点来点去也很麻烦,下面我们用公式来对一些重复数据进行处理一、【单列提取不重复值】先将数据列定义名称{=INDEX(名称,MATCH(,COUNTIF...
分类:
其他好文 时间:
2015-07-23 17:30:58
阅读次数:
247
今天在尝试自定义一个控件后,在布局文件中使用的时候报错
xmlns:tools="http://schemas.android.com/tools"
xmlns:carrey="http://schemas.android.com/apk/res/com.example.customview"
android:layout_width="match_parent"...
分类:
其他好文 时间:
2015-07-23 12:08:27
阅读次数:
143
序列最大长度2w * 5 = 10w, O(n²)的LCS会T..LCS 只有当a[i] == b[j]时, 才能更新答案, 我们可以记录n个数在第一个序列中出现的5个位置, 然后从左往右扫第二个序列时将第一个序列对应位置的值更新, 用树状数组维护. 时间复杂度O(nlogn)-----------...
分类:
其他好文 时间:
2015-07-22 20:36:56
阅读次数:
112
效果图:
代码部分main_activity.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:...
分类:
移动开发 时间:
2015-07-22 16:10:30
阅读次数:
231
今天学习了Python中有关正则表达式的知识。关于正则表达式的语法,不作过多解释,网上有许多学习的资料。这里主要介绍Python中常用的正则表达式处理函数。re.match re.match 尝试从字符串的开始匹配一个模式,如:下面的例子匹配第一个单词。import retext = "JGood....
分类:
编程语言 时间:
2015-07-22 12:50:16
阅读次数:
147