02 2014 档案

摘要:$(document).ready(function () { document.cookie = "cookieid=1; expires=60"; var result = document.cookie.indexOf("cookieid=") != -1; if (!result) { alert("浏览器未启用cookie"); } });一般浏览器设置cookie方式打开:更多设置——隐私和个人数据——接受cookie,开启 阅读全文
posted @ 2014-02-14 10:51 优雅的疯子 阅读(894) 评论(0) 推荐(0)
摘要:返回上一页或:返回上一页如果是用按钮做的话就是:用图片做的话就是:几秒钟后自动返回上一页代码:content=这后面是时间。蓝色字处可以自行更换。 Javascript刷新页面的几种方法:1 history.go(0)2 location.reload()3 location=location4 location.assign(location)5 document.execCommand('Refresh')6 window.navigate(location)7 location.replace(location)8 document.URL=location.href 自 阅读全文
posted @ 2014-02-10 11:59 优雅的疯子 阅读(4358) 评论(0) 推荐(0)
摘要:jQuery Mobile 基本页面结构大部分jQuery Mobile Web应用程序都要遵循下面的基本模板 jQuery Mobile基本页面结构 Header Content goes here Footer 代码说明要使用 jQuer... 阅读全文
posted @ 2014-02-08 17:00 优雅的疯子 阅读(506) 评论(0) 推荐(0)