windowAddMouseWheel(); function windowAddMouseWheel() { var i = 0; var scrollFunc = function (e) { e = e || window.event; if (e.wheelDelta) { //判断浏览器IE,谷歌滑轮事件 if (e.wheelDelta > 0) { //当滑轮向上滚动时 alert("滑轮向上滚动"+i); } if (e.wheelDelta < 0) {
Activity /**登录界面及登陆后用户首页界面,使用两个Fragment实现*/ public class LoginActivity extends Activity implements LoginInterface { /** 存放Fragment的容器 */ private View fragmentContainer; /** 在使用replace替换Fragment是需要一个id */ public static final int ROOT_I