1.隐藏值: a.用于隐藏; b.%{obj.id}只是struts2的应用,在其他框架中无法应用,这个功能类似于EL的${}功能。2.取项目的相对路径(使用pageContext):function viewBbsTopic(id){window.location = "${pageConte.....
分类:
其他好文 时间:
2014-06-28 19:33:39
阅读次数:
195
functionrequest(paras){varurl=location.href;varparaString=url.substring(url.indexOf("?")+1,url.length).split("&");varparaObj={}for(i=0;j=paraString[i]...
分类:
Web程序 时间:
2014-06-28 18:25:01
阅读次数:
186
使用Eclipse的maven构建一个web项目1、选择建立Maven Project 选择File -> New -> Other,在New窗口中选择 Maven -> Maven Project;点击next 2、选择项目路径Usedefault Workspace location默认工作.....
分类:
Web程序 时间:
2014-06-28 12:50:22
阅读次数:
316
通常struts.xml都是如下形式: struts元素下有五个元素,只讲解package、constant、include;package: 在Struts2框架中是通过包来管理action、result、interceptor、interceptor-stack等配置信息的。属性:n...
分类:
其他好文 时间:
2014-06-22 23:29:51
阅读次数:
296
每做一个项目都会有收获,前提是要在这个项目上付出努力的!好吧,如今讲一下:怎么通过调用系统通讯录,当你点击联系人姓名时,跳转到向其发送短信的页面。看看图片效果:以下看一下具体代码: Uri result = data.getData(); String phoneName = getPhoneC.....
分类:
其他好文 时间:
2014-06-22 23:25:48
阅读次数:
239
xml解析报错:Invalid byte 2 of 2-byte UTF-8 sequence
在做接口解析时候出现的错误:Invalid byte 2 of 2-byte UTF-8 sequence. Nested exception: Invalid byte 2 of 2-byte UTF-8 sequence.
很明显是在读取XML文件时候出现的编码问题!
在测试过程中发...
分类:
其他好文 时间:
2014-06-22 16:26:26
阅读次数:
143
现在微信公众平台很多娱乐的,都有用到周边搜索功能,研究下比较简单,通过百度周边搜索接口封装如下:
调用格式:
$wechatBaiduAPI = new WechatBaiduAPI();
$ret = $wechatBaiduAPI->Place_search($str_key,$location['x'].",".$location['y'] );
参数说明:...
分类:
微信 时间:
2014-06-22 14:43:44
阅读次数:
481
一.百度地图API获取定位
AndroidManifest.xml必须配置:
定位服务
service
android:name="com.baidu.location.f"
android:enabled="true"
android:process=":remote"
...
//此方法能得到你想要的小数点后位数double percent=Convert.ToDouble(2)/Convert.ToDouble(34);string result=string.Format("{0:0.00%}",percent);//得到5.88%string result=stri...
分类:
其他好文 时间:
2014-06-20 18:05:35
阅读次数:
195
private void FocusFirstTabIndex(Control container){ // init search result varialble Control searchResult = null; // find the control with the...
分类:
其他好文 时间:
2014-06-20 17:43:54
阅读次数:
178