zoukankan      html  css  js  c++  java
  • 可运行的js代码

    canrun

    <html>
    <head>
        <title>测试博客园HTML源码运行程序</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Language" content="zh-CN" />
        <script type="text/javascript">
            alert('哈哈,我运行咯!!!');
        </script>
    </head>
    <body>
    </body>
    </html>

     一直以为博客园编辑HTML代码是可以支持js代码的,在写文章时想要插入一个小demo结果没有效果,查了一下才发现是不支持,于是百度了一下大佬们的做法,这里拿来借鉴一下。

    首先在设置中的页首Html代码中引入这个js文件,这里放下链接,也可以下载上传到自己的博客园:https://blog-static.cnblogs.com/files/ss-wdp/sss-wdpRunHTML.js

    之后直接在编辑器中输入canrun .然后换行,插入代码就可以执行了。

  • 相关阅读:
    asp.net 2.0 run
    Regular Expression
    assembly
    asp.net loading..
    session
    asp.net performance
    asp.net page order
    interface
    UVA 562 Dividing coins
    UVA 10003 Cutting Sticks
  • 原文地址:https://www.cnblogs.com/ss-wdp/p/10843310.html
Copyright © 2011-2022 走看看