zoukankan      html  css  js  c++  java
  • HighLight.js 使用Demo

    复制下面代码,保存为html,浏览器打开预览即可。

    <!DOCTYPE html>
    <html>
    <head> 
    <meta charset="utf-8">  
    </head>
    <body>
    <link href="http://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css" rel="stylesheet">  
    <script src="http://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"></script>  
    <script >hljs.initHighlightingOnLoad();</script>  
    <pre><code class="lang-java">
    SuperCatch Crash!!!
    ====================Crash日志开始记录====================
    Crash Time: 2017-12-20 06:08:51
    Crash Thread: main
    Crash Digest: java.lang.IllegalStateException: Could not execute method for android:onClick
    Crash StackTrace: java.lang.IllegalStateException: Could not execute method for android:onClick
        at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
        at android.view.View.performClick(View.java:5646)
        at android.view.View$PerformClick.run(View.java:22459)
        at android.os.Handler.handleCallback(Handler.java:761)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:156)
        at android.app.ActivityThread.main(ActivityThread.java:6523)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
    Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
        ... 9 more
    Caused by: java.lang.NullPointerException: Wa Null Point Exception
        at me.chunsheng.supercatch.MainActivity.crashTest(MainActivity.java:19)
        ... 11 more
    
    ******Crash设备当前信息******
    Device Name: HUAWEI EVA-AL00
    Android Version: 7.0
    Device System: EVA-AL00C00B398
    Device Battery: 100 %
    Device Rooted: no
    Device Ram: 43.0% [2.00 GB]
    Device Disk: 73.0% [25.00 GB]
    App Verion: 1.0
    Device Network: WIFI
    ====================Crash日志结束记录====================
    </code></pre>
    </body>
    </html>
  • 相关阅读:
    自定义实现wcf的用户名密码验证
    EF6:编写你自己的code first 数据迁移操作(睡前来一篇,翻译的)
    .net 连接Redis
    idea external libraries 只有jdk问题
    MAC vim安装gruvbox主题
    Mac gitk安装与优化
    spring security 4 filter 顺序及作用
    mysql 采样查询 / 间隔查询 / 跳跃查询的两种实现思路
    nginx warn an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/ while reading upstream
    nginx日志 logrotate配置
  • 原文地址:https://www.cnblogs.com/spring87/p/8079891.html
Copyright © 2011-2022 走看看