摘要: 先保存下 然后慢慢研究<script type="text/javascript"> var pb_strConfirmCloseMessage; var pb_blnCloseWindow = false; pb_strConfirmCloseMessage = "确实要离开该页面吗?您的文章内容还没有进行保存!按“确定”继续,或按“取消”留在当前页面。"; function ConfirmClose() { window.event.returnValue = pb_strConfirmCloseMessage; pb_blnCloseW 阅读全文
posted @ 2013-06-05 15:06 五月℃夏到了 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 最近项目中用到cookie,登录的时候用js写如cookie,如果设置了有效期,那么这个cookie可以用ckeadm工具查看到,而且也可以用Request.Cookie[Key]的方式获取到数据。然后如果没有设置有效期的话,js写入的cookie,无法通过Request.Cookie[Key]获取,也无法通过这个工具查看到。function addAuthenticationCookie(name, value, path) { //Authentication using minutes as unit var name = escape(name); var value = escape 阅读全文
posted @ 2013-06-05 14:28 五月℃夏到了 阅读(182) 评论(0) 推荐(1) 编辑