//收藏本站 function AddFavorite(title, url) { try { window.external.addFavorite(url, title); } catch (e) { try { window.sidebar.addPanel(title, url, ""); } catch (e) { alert("抱歉,您所使用的浏览器无法完成此操作,请使用Ctrl+D进行添加"); } } }
  

网友评论

共 0 评 >>  我要留言
您的大名 >>  我要留言
您的大名
150){ alert("不要太长哦,最多150个汉字"); return; } if (form['ck'] == ""){ alert("请输入验证码!"); return; } $.get("/api/v1/comment/save.json", form, function (data) { console.log(data); if (data.code == '200') { location.reload(this); } else { alert(data.msg); } }); } $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [ o[this.name] ]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; } $(function(){ var oa = $("#content a"); for(var i=0;i