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