簡書的簡單使用

標題 markdown

1.有序

  • 無序
  1. 超鏈接
    百度
    3.圖片
    妹子
4.列表
號碼 名字
17605878675 丁國棟

5.名言引用

Will, work and wait are the pyramidal cornerstones for success.意志、工作和等待是成功的金字塔的基石

6.代碼引用
···
/**
* base64網速檢測標記
* 超時次數變量 BOT
* 初始:0
* 范圍:0-6
* 變換規則:
* 每次超時,BOT +1;
* 每次正常:BOT -1;
* 到達邊界值時,不再繼續增加/減少
* 如何使用:(未上線)
* BOT大于3時,設置cookie: B64_BOT=1,VUI針對本次請求,讀cookie,如果B64_BOT=1,關閉base64服務
* 當BOT小于3時,設置cookie: B64_BOT=0,VUI正常開啟base64服務。
/
var botTag = {
ot : function(isInc){
var _bottag = botTag.get();
if(isInc){
if(_bottag<6){
_bottag++;
}
}else{
if(_bottag>0){
_bottag--;
}
}
if( _bottag>=2 ){
var date = new Date();
date.setTime(date.getTime() + 24
360010005);
//此處設置cookie
document.cookie = "B64_BOT=1; expires=" + date.toGMTString();
//_bottag = 0;
}else if( _bottag<1 ){
if(document.cookie.match('B64_BOT=1')){
document.cookie = "B64_BOT=0;";
}
}
try{
if(window.localStorage){
window.localStorage[_BOTTAGLSNAME] = _bottag;
}
}catch(e){}
},
get : function(){
try{
if(window.localStorage){
var _bottag = window.localStorage[_BOTTAGLSNAME];
_bottag = _bottag?parseInt(_bottag):0;
}else{
return 0;
}
return _bottag;
}catch(e){
return 0;
}

···

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • "use strict";function _classCallCheck(e,t){if(!(e instanc...
    久些閱讀 2,048評論 0 2
  • 北京2018年4月1日上午,NBA常規賽勇士客戰國王的比賽中,發生了令人痛心不已的一幕。比賽進行到第三節還有41...
    Curry_宇閱讀 1,238評論 1 1
  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML標準。 注意:講述HT...
    kismetajun閱讀 27,642評論 1 45
  • 服務器運行狀態的監控,關乎著你企業的發展!?。。?!
    如來自然閱讀 450評論 1 0
  • 前幾天夢到昭昭和芹芹從濟南來成都了,找我玩,夢里很開心,又很不相信,一遍一遍問她們這是真的嘛,不是在做夢嗎,她們說...
    彭小菜閱讀 149評論 0 0