Article From:https://segmentfault.com/q/1010000010814493
Question:

For example. I did some physical work to share with you. Replace the static file of CFcdn to bootcss CDN.
The replacement file path is in the webui under the pyspider file directory.
Annotate all the static references of cloudflare pages, and then use the following.
indexPage:

<link href="https://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/x-editable/1.5.1/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/sortable/0.6.0/css/sortable-theme-bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

<script src="https://cdn.bootcss.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
    <script src="https://cdn.bootcss.com/sortable/0.6.0/js/sortable.min.js"></script>
    <script src="https://cdn.bootcss.com/vue/1.0.28/vue.min.js"></script>

debugPage:

<link href="https://cdn.bootcss.com/codemirror/5.20.2/codemirror.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/codemirror/5.20.2/addon/dialog/dialog.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/codemirror/5.20.2/addon/lint/lint.min.css" rel="stylesheet">
    
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/jsonlint/1.6.0/jsonlint.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/codemirror.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/xml/xml.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/css/css.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/javascript/javascript.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/htmlmixed/htmlmixed.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/python/python.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/search/search.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/search/searchcursor.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/dialog/dialog.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/selection/active-line.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/runmode/runmode.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/lint/lint.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/lint/json-lint.min.js"></script>
    <script src="https://cdn.bootcss.com/codemirror/2.36.0/formatting.min.js"></script>
    <script src="https://cdn.bootcss.com/URI.js/1.11.2/URI.min.js"></script>

tasksPage:

<link href="https://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>

PS:Be careful not to annotate the local CSS JS.

Answer 0:

The commentary author answers the routine.

Leave a Reply

Your email address will not be published. Required fields are marked *