XXXjavascript
```
css
<script src="https://blog-static.cnblogs.com/files/CoderWayne/hyt25.js"></script> <script type="text/javascript"> window.onresize = function () { console.log(window.innerWidth); var isDetail = document.getElementById("post_detail"); if(isDetail) { $(".forFlow").css('marginLeft',0); if(window.innerWidth<760) { $(".forFlow").css('marginTop',70); } else { $(".forFlow").css('marginTop',0); } } else { if(window.innerWidth<760) { $(".forFlow").css('marginLeft',0); $(".forFlow").css('marginTop',70); } else { $(".forFlow").css('marginLeft',255); $(".forFlow").css('marginTop',0); } } } $(function(){ var isDetail = document.getElementById("post_detail"); if(isDetail) { document.getElementById("sideBar").style.display = "none"; $(".forFlow").css('marginLeft',0); if(window.innerWidth<760) { $(".forFlow").css('marginTop',70); } else { $(".forFlow").css('marginTop',0); } } else { document.getElementById("sideBar").style.display = "block"; if(window.innerWidth<760) { $(".forFlow").css('marginLeft',0); $(".forFlow").css('marginTop',70); } else { $(".forFlow").css('marginLeft',255); $(".forFlow").css('marginTop',0); } } console.log(window.innerWidth); $('#cnblogs_post_body p').each(function (index,element) { var content = $(element).text() if (/^```/.test(content)) { $(element).remove(); return; } }) }) $.silence(); </script>
YYYhtml
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend { UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; /*邏輯ab判斷*/ UILabel *label = (UILabel *)[cell viewWithTag:104]; //新加入語句 dispatch_async(dispatch_get_main_queue(), ^{ if((float)totalBytesSent / totalBytesExpectedToSend == 1.0f) { label.text = @"上傳成功"; } else { label.text = [NSString stringWithFormat:@"上傳中:%.0f%%",100*(float)totalBytesSent / totalBytesExpectedToSend]; } }); }
下面是MD原生java
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend { UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; UILabel *label = (UILabel *)[cell viewWithTag:104]; dispatch_async(dispatch_get_main_queue(), ^{ if((float)totalBytesSent / totalBytesExpectedToSend == 1.0f) { label.text = @"上傳成功"; } else { label.text = [NSString stringWithFormat:@"上傳中:%.0f%%",100*(float)totalBytesSent / totalBytesExpectedToSend]; } }); }
MWeb 是專業的 Markdown 寫做、記筆記、靜態博客生成軟件,目前已支持 Mac,iPad 和 iPhone。MWeb 有如下特點:git
中間寫上想說的話web
若是要更詳細瞭解 MWeb,建議你必定要去看一下官網的幫助文檔,網址爲:https://zh.mweb.im/help.html。咱們建議在使用文檔庫以前,必定要閱讀一下 MWeb 文檔庫詳細介紹 這篇文章,以便更好的使用文檔庫。markdown
若是你喜歡 MWeb,想讓它變得更好,你能夠:session
<details> <summary><mark><font color=darkred>點擊查看詳細內容</font></mark></summary> </details>
ABCDhexo
胡曉偉測試貼圖begin
echarts