/*** * 获得根目录 * @returns */function getRootPath() { var strFullPath = window.document.location.href; var strPath = window.document.location.pathn...
分类:
Web程序 时间:
2014-08-04 21:17:07
阅读次数:
262
出处:http://my.oschina.net/u/1011854/blog/169434再次 谢谢作者!在开发web app并且使用phonegap的情况下,附件下载着实是一件令人头疼的事,什么window.open或者window.location.href在webview中都不起作用,网上查...
分类:
其他好文 时间:
2014-08-04 21:00:17
阅读次数:
266
GetStreamUri函数可以获取流媒体地址。代码如下:void UserGetUri(const char* xAddr){ int result=0 ; struct soap *soap = soap_new(); struct _trt__GetStreamUri trt__Ge...
分类:
其他好文 时间:
2014-08-04 20:54:27
阅读次数:
2148
基本语法location[=|~|~*|^~|@]/uri/{…}〖=〗表示精确匹配,如果找到,立即停止搜索并立即处理此请求。〖~〗表示区分大小写匹配〖~*〗表示不区分大小写匹配〖^~〗表示只匹配字符串,不查询正则表达式。〖@〗指定一个命名的location,一般只用于内部重定向请求。**区分和不区分..
分类:
其他好文 时间:
2014-08-04 18:23:48
阅读次数:
242
getMeasuredWidth在源码中的解释如下:
/**
* Like {@link #getMeasuredWidthAndState()}, but only returns the
* raw width component (that is the result is masked by
* {@link #MEASURED_SIZE_MASK}...
分类:
其他好文 时间:
2014-08-04 14:36:27
阅读次数:
265
mysql.php 获取数据库中的记录,完全个人经验总结,仅供参考!".$sql."";mysql_query($sql);if($printsql) echo "".$sql2."";$result = mysql_query($sql2);if(mysql_num_rows($result)==...
分类:
Web程序 时间:
2014-08-04 13:49:37
阅读次数:
293
location.href这个东西常常用于跳转,location既是window对象的属性,又是document对象的属性。JavaScript hash 属性 -- 返回URL中#符号后面的内容JavaScript host 属性 -- 返回域名JavaScript hostname 属性 -- ...
分类:
编程语言 时间:
2014-08-04 13:46:07
阅读次数:
243
[root@luozhonghua 04]# cat ex04-3-pipe02.c
#include
#include
#include
#include
#include
int main(void){
int result=-1;
int fd[2],nbytes;
pid_t pid;
char string[]="hello,...
分类:
系统相关 时间:
2014-08-04 02:05:36
阅读次数:
307
功能:实现累加计算。知识点:bool int.TryParse(string s,out int result)(+1重载) 将数字的字符串形式转换为它的等效的32位有效的有符号整数,一个指示操作是否成功的返回值。using System;using System.Collections.Gener...
这个问题也挺让人无语的,昨天重新装了Mac OS X,然后装JDK,想都没想就装了JDK 8,然后开始实验,结果就报类似于下面这种Exception:
org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java.util.Comparator': Invalid byte tag in constant pool: 18...
分类:
Web程序 时间:
2014-08-03 12:50:35
阅读次数:
261