浏览器页面后退事件 <a?href="javascript:history.back(-1)"?class="btn?btn-default"?>返回</a>
history.back(-1):直接返回当前页的上一页,数据全部消息,是个新页面
history.go(-1):也是返回当前页的上一...
分类:
Web程序 时间:
2014-12-24 18:44:14
阅读次数:
166
我在通过intent 获得传递兑现过的时候报错,空指针,我是getMap方法进行传值,代码如下
public void getMap(View view){
Intent i = new Intent(this, BreweryYourTopBeers.class);
Log.d("map" , e.beerBreweryId);
i....
分类:
移动开发 时间:
2014-12-24 18:05:52
阅读次数:
181
1.知识点
在了解Scorller类之前应先知道View的ScrollTo(int x, int y)/ScrollBy(int x, int y),了解什么是视图坐标,什么是布局坐标。之后我们来看一下Scroller的源码。
Scoller一般用在自定义View中
public class Scroller {
private int mStartX;...
分类:
移动开发 时间:
2014-12-24 18:04:24
阅读次数:
199
一、避免在循环条件中使用复杂表达式 在不做编译优化的情况下,在循环中,循环条件会被反复计算,如果不使用复杂表达式,而使循环条件值不变的话,程序将会运行的更快。 例子: import java.util.vector;class cel { void method (vector vector)...
分类:
编程语言 时间:
2014-12-24 18:00:55
阅读次数:
265
原文:PHP-微信公众平台开发-接收用户输入消息类型并响应
responseMsg();
}else{ $wechatObj->valid();
} class wechatCallbackapiTest
{ public function valid() { $echoStr = $_GET["e...
分类:
微信 时间:
2014-12-24 17:56:08
阅读次数:
326
原文: 微信公众平台消息接口PHP版开发教程 ??
一、写好接口程序
在你的服务器上上传好一个接口程序文件,如http://www.yourdomain.com/weixin.php 内容如下:
valid(); //$wechatObj->responseMsg(); class wechatCa...
分类:
微信 时间:
2014-12-24 17:54:50
阅读次数:
338
import java.util.concurrent.CountDownLatch;/** * 出发点:等待所有线程执行完成 * @author yinchuan.chen * */public class CountDownLatchTest { public static void main(...
分类:
其他好文 时间:
2014-12-24 17:46:41
阅读次数:
162
public class FTP { static FtpWebRequest reqFTP; static WebResponse response; static StreamReader ftpStream; static Stream strm; static FileStream fs; ...
//所有的特性必须要继承ValidationAttribute public class MaxWordsAttribute : ValidationAttribute { //该参数是验证条件【构造函数里面可以增加验证条件】 private readonl...
分类:
其他好文 时间:
2014-12-24 17:41:33
阅读次数:
209
今天在做项目的时候要对表格内的部分的最大最小值高亮解决方案1. 引用 ng-class2. 引用原型求最大最小值实例AngularJs HTML 代码 1 2 3 4 标题1 5 标题2 6 标题3...
分类:
Web程序 时间:
2014-12-24 17:40:08
阅读次数:
141