$(document).ready(function () { //var currentDate = new Date(); //var currentweek = ['日', '一', '二', '三', '四', '五', '六']; //$("#currenttime").html(currentDate.format("yyyy年MM月dd日")); //$("#currentweek").html("星期" + currentweek[currentDate.getDay()]); $("#addFavourite").live("click", function () { AddFavorite(document.title, document.href); return false; }); $("#loginOut").live("click", function () { $.post("/LoginOut.aspx?op=loginout", function (data) { if (data.result == "success") { window.location = window.location; } else { alert("操作失败"); } }); return false; }); });