V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alay9999
V2EX  ›  V2EX

[V2EX 技巧] 贴图和贴代码的方法(写给像我一样的小白)(14.08.29 更新版)

  •  2
     
  •   alay9999 · 2014-08-29 10:46:17 +08:00 · 34202 次点击
    这是一个创建于 3499 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以前我曾经写过一个一样的主题帖( https://www.v2ex.com/t/74249 ),但是有很多不完善的地方,而且因为帖子无法修改,APPEND 大家又不怎么注意,导致很多人还是要反复的测试测试,所以我再发一个更新版好了。

    一、贴图

    使用各种图片空间保存图片,支持的图床为: http://imgur.com/ 和 新浪微博(比如: http://www.v2ex.com/t/44453

    然后复制图片地址,注意地址后缀是图片后缀(比如.jpg、png)才行

    发帖时直接放图片网址即可,不用任何其他代码

    二、贴代码

    https://gist.github.com/ 写入代码;

    点击右下角的 Create public Gist 按钮;

    在发布成功的页面右侧找到 Embed URL,并复制其中内容;

    获得代码状如(为防止被转换,我插入了几个空格,下同) :<scri pt src="htt ps://gist.git hub.com/ano nym ous/589 4938.js"></sc ript>

    删除头尾变成如下格式 : h ttps://gist.gith ub.com/ano nymous/58 94938

    也可以说是获取代码中的链接地址,然后去掉 .js 后缀

    然后把获取到的,状如: ht tps://gist.gi thub.com/anony mous/58 94938 的地址粘贴到 V2EX 的编辑框即可

    如果下方代码正常显示,则证明此方法可以正常使用。

    422 条回复    2024-03-12 19:16:42 +08:00
    1  2  3  4  5  
    xiaowei0823
        401
    xiaowei0823  
       2021-08-05 11:00:30 +08:00
    测试一下

    zhengqiaoyin
        402
    zhengqiaoyin  
       2021-08-16 17:01:39 +08:00
    shangwuli
        403
    shangwuli  
       2021-08-16 17:04:39 +08:00
    zhengqiaoyin
        404
    zhengqiaoyin  
       2021-08-30 17:31:46 +08:00
    xiaowei0823
        405
    xiaowei0823  
       2021-08-31 09:36:20 +08:00
    再试试

    vxyun
        407
    vxyun  
       2022-05-11 00:02:12 +08:00
    vxyun
        408
    vxyun  
       2022-05-11 00:03:38 +08:00
    vxyun
        409
    vxyun  
       2022-05-11 00:07:44 +08:00
    corvofeng
        410
    corvofeng  
       2022-06-25 10:49:48 +08:00
    corvofeng
        411
    corvofeng  
       2022-06-25 10:50:35 +08:00
    corvofeng
        412
    corvofeng  
       2022-06-25 10:51:08 +08:00
    <blockquote class="imgur-embed-pub" lang="en" data-id="a/9UKHViA" data-context="false" ><a href="//imgur.com/a/9UKHViA"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
    TomDu
        413
    TomDu  
       2022-08-12 22:42:45 +08:00
    TomDu
        414
    TomDu  
       2022-08-12 22:43:26 +08:00
    plau313
        415
    plau313  
       160 天前
    plau313
        416
    plau313  
       160 天前
    测试图片:
    MJZ1995
        417
    MJZ1995  
       143 天前
    gxy2825
        418
    gxy2825  
       127 天前
    kawaiidora
        419
    kawaiidora  
       21 天前


    cocoking
        421
    cocoking  
       15 天前
    cocoking
        422
    cocoking  
       15 天前
    <blockquote class="imgur-embed-pub" lang="en" data-id="a/iYmUtb3" ><a href="//imgur.com/a/iYmUtb3">9929</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
    1  2  3  4  5  
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3981 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:20 · PVG 18:20 · LAX 03:20 · JFK 06:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.