$(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; }); });