摘要: 效果图如下:要求:成功时加载商品信息,失败时提示重新加载。其中,总个数,当前页,上一页和下一页是前台页面模拟的。只在页面加载时请求一次。代码: ;(function($){ $.fn.mroductInfo=function(options){ var _this = $(this); var len = 0; var index = 0; var defaults = { title:'商品名称', type:'GET', ... 阅读全文
posted @ 2012-10-21 22:13 前端咖 阅读(447) 评论(0) 推荐(0)
摘要: onbeforeunload和onunload都是在刷新和关闭浏览器事触发。onbeforeunload在onunload之前触发,因为有before,开个玩笑。由按钮事件触发,采用window.open方法,打卡一个新页面window.open('http://localhost/mtest/index.html', 'mtitle','height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status= 阅读全文
posted @ 2012-10-21 21:44 前端咖 阅读(1215) 评论(0) 推荐(0)