functiongetBroswerType(){varSys={};varua=navigator.userAgent.toLowerCase();vars;(s=ua.match(/msie([\d.]+)/))?Sys.ie=s[1]:(s=ua.match(/firefox\/([\d.]+)/))?Sys.firefox=s[1]:(s=ua.match(/chrome\/([\d.]+)/))?Sys.chrome=s[1]:(s=ua.match(/opera.([\d.]+)/))?Sys.o..
分类:
Web程序 时间:
2015-02-05 18:44:18
阅读次数:
184
首先在AndroidMainifest中添加上网权限
布局文件activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match...
分类:
移动开发 时间:
2015-02-05 16:25:57
阅读次数:
173
2.1xml布局<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><GridViewandroid:id="@+id/gv"android:numColumns..
分类:
其他好文 时间:
2015-02-05 07:12:20
阅读次数:
127
activity_main.xml <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????xmlns:tools="http://schemas.android.com/tools"
????android:layout_width="match_parent"
???...
分类:
其他好文 时间:
2015-02-04 00:53:14
阅读次数:
170
方法一:1,布局xml页面<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><TextViewandroid:id="@+id/tv_content..
分类:
其他好文 时间:
2015-02-04 00:43:38
阅读次数:
127
安装了高版本OS X 之后无法使用MacPorts的port命令pod update提示:Current platform "darwin 14" does not match expected platform "darwin 13"需要下载MacPorts源码编译安装,方法如下:来自https:...
分类:
系统相关 时间:
2015-02-03 22:46:17
阅读次数:
962
转自:http://www.crifan.com/python_syntax_error_indentationerror/comment-page-1/【问题】 一个python脚本,本来都运行好好的,然后写了几行代码,而且也都确保每行都对齐了,但是运行的时候,却出现语法错误: Indentati...
分类:
编程语言 时间:
2015-02-03 16:36:24
阅读次数:
324
讲一下建图过程,题目给出了我们一组匹配match[i] 。对于这一组匹配好的解,我们建边 i->j, 对于能匹配但是不是题目给出的匹配的边,建边j->i; 那么对于一个son和一个gril,如果属于同一个强连通且能过匹配的就一定是满足条件的 。
VIEW CODE
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-02-03 13:23:20
阅读次数:
166
1,xml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><GridViewandroid:id="@+i..
分类:
其他好文 时间:
2015-02-03 07:07:40
阅读次数:
152
用自己定义的链栈实现括号匹配 1 #include"LinkStack.h" 2 bool Match(char *s) 3 { 4 LinkStack tmpS; 5 char tmpCh; 6 for(int i=0;i<strlen(s);i++) 7 { 8 ...
分类:
其他好文 时间:
2015-02-02 17:36:01
阅读次数:
160