MD Test

欢迎使用 MWeb

XXXjavascript

```
css


ZFCollectionViewListController.m

<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

ZFCollectionViewListController.m
- (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

  • 使用原生的 macOS 技术打造,追求与系统的完美结合。
  • 原则上,首先是追求界面简洁和高性能,而后才是强大易用,功能全面。

Markdown 语法:

  • 使用 Github Flavored Markdown 语法,简称 GFM 语法。
  • 支持表格、TOC、LaTeX、代码块、任务列表、脚注等。
  • 画图库支持 mermaid, viz, echarts, plantuml, sequence, flow。

Markdown 辅助:

  • 支持截图并粘贴、复制并粘贴、拖拽等方式插入图片并直接显示在编辑器内。
  • 在兼容 Markdown 语法的状况下支持设置图片宽度。
  • 好用的表格插入和 LaTeX 书写辅助。

Markdown 输出:

  • 支持导出为图片、HTML、Epub、PDF、RTF、Docx。
  • 支持发布到 Wordrpess、支持 Metaweblog API 协议的服务、Wordpress.com、印象笔记(Evernote)、Blogger、Medium、Tumblr。
  • 图片上传服务(图床)支持 Google Photos、Imgur、七牛云、又拍云和自定义的图床服务。

Markdown 笔记:

  • 强大的文档库支持分类树和标签管理文档,文档可归类于多个分类,能够把分类整个导出为 Epub、PDF 和生成静态网站。很是合适用于笔记、我的知识收集、管理和输出。
  • 快速笔记:随意增长笔记及图片等素材,支持以天为单位把增长的素材组合在一个文档内,方便整理及记录历史收集状况。
  • 快速搜索:目前已支持全局快捷键调出搜索。

外部 Markdown 文档:

  • 外部 Markdown 文档使用外部模式管理。外部模式使用目录树的方式编辑和管理你的 markdown 文档,还能很好的支持 gitbook、JekyII、hexo 等等编辑和图片插入。

MWeb 文档:

若是要更详细了解 MWeb,建议你必定要去看一下官网的帮助文档,网址为:https://zh.mweb.im/help.html。咱们建议在使用文档库以前,必定要阅读一下 MWeb 文档库详细介绍 这篇文章,以便更好的使用文档库。markdown

帮助咱们改进 MWeb

若是你喜欢 MWeb,想让它变得更好,你能够:session

  1. 推荐 MWeb,让更多的人知道。
  2. 给咱们发反馈和建议:coderforart+2333@gmail.com
  3. 在 Mac App Store 上评价 (若是是在 MAS 上购买的话)。
<details>
<summary><mark><font color=darkred>点击查看详细内容</font></mark></summary>


</details>

ABCDhexo

CLICK ME ```objc - (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]; } }); } ```

胡晓伟测试贴图begin
echarts

胡晓伟测试贴图end
相关文章
相关标签/搜索