随笔分类 - AppCan
摘要://selector:可以为dom对象,也可以为dom对象的id值//etype:监听的事件类型:up,down,left,right//endFun:事件完毕后的回调方法var zyEvent = function(selector,etype,endFun){<script>function log(s){ document.getElementById("contid").innerHTML = s;}var eva = new zyEvent(document,'up',function(){log('向上滑动')});v
阅读全文
摘要:前台代码:<!DOCTYPE html><html class="ui-mobile landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px"> <head> <title> </title> <meta charset="utf-8"> <meta name="viewport" content="width=device
阅读全文