Uri uri = data.getData();String[] proj = { MediaStore.Images.Media.DATA };Cursor actualimagecursor = managedQuery(uri,proj,null,null,null);int actual_...
分类:
移动开发 时间:
2014-08-01 04:45:11
阅读次数:
291
分享一些php采集程序中的常用函数,省得以后满地找了,想用时来这里看看,哈哈。//当前的脚本网址 function get_php_url(){ if(!empty($_SERVER["REQUEST_URI"])){ $scriptName = $_SERVER["REQUEST_URI"]; $...
分类:
Web程序 时间:
2014-07-31 19:45:47
阅读次数:
230
一、Global所有在全局作用域定义的属性和方法,都属于Global对象。1.URI编码:encodeURI():主要用于对整个URI编码。它不会对本身属于URI的特殊字符进行编码。encodeComponentURI():主要用于对URI中的某一部分进行编码,很常用的是对查询字符串参数进行编码。它...
分类:
编程语言 时间:
2014-07-31 19:40:57
阅读次数:
285
phonegap的拍照插件选择图库中的图片,代码如下:
navigator.camera.getPicture(function(uri){
console.log(uri);//这里得到图片的uri
}, this.failure, {
quality: 70,
destinationType: navigator.camera.DestinationType.FILE_...
分类:
移动开发 时间:
2014-07-31 13:28:36
阅读次数:
398
实例: jsp页面 <%@?page?language="java"?contentType="text/html"?pageEncoding="UTF-8"%>
<%@?taglib?uri="/struts-tags"?prefix="s"%>
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?HTML?4.01?Transitio...
分类:
其他好文 时间:
2014-07-31 10:01:57
阅读次数:
311
前期的BAE创建应用、部署代码之类的就不说了 CI的URI问题 首先遇到的第一个问题就是CI的URI设计缺陷带来的问题,导致在BAE上不能够正确的找到控制器和方法,因此这里就要把它改成使用查询字符串的形式 具体步骤首...
分类:
其他好文 时间:
2014-07-31 03:19:46
阅读次数:
209
fmt:formatDate输出格式整理?? jsp: 加入标签:?<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> input中:特别是修改页面 ? ?<input value="<fmt:formatDate value=‘${accoun...
分类:
Web程序 时间:
2014-07-29 18:27:42
阅读次数:
207
修改文件 /system/core/Router.php 的方法 _parse_route()
/**
* Parse Routes
*
* This function matches any routes that may exist in
* the config/routes.php file against the URI to
* determine if th...
分类:
其他好文 时间:
2014-07-29 18:05:12
阅读次数:
211
方法一:Uri updateUri = Uri.fromFile(file); Intent updateIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, updateUri); sendBroadcast(update...
分类:
移动开发 时间:
2014-07-29 14:09:18
阅读次数:
256
1.从页面资源中获取样式并应用btnTest.Style=(Style)this.Resources["BigButtonStyle"]2.从项目中单独分开的资源字典文件(或一个引用的程序集中)中获取样式。首先,需要创建一个ResourceDictionary对象并提供正确的URI:Resource...
分类:
Web程序 时间:
2014-07-29 13:36:28
阅读次数:
179