open文件,頁面展示的空白頁,沒有加載完成。是css、js不支持嗎
#?index.html文件? <!DOCTYPE?html>???? <html?dir="ltr">???? <head>???? <meta?charset="utf-8">???? <title>Allure?Report</title>???? <link?rel="favicon"?href="favicon.ico?v=2">???? <link?rel="stylesheet"?type="text/css"?href="styles.css">???? <link?rel="stylesheet"?href="plugins/screen-diff/styles.css">???? </head>???? <body>???? <div?id="alert"></div>???? <div?id="content">???? <span?class="spinner">???? <span?class="spinner__circle"></span>???? </span>???? </div>???? <div?id="popup"></div>???? <script?src="app.js"></script>???? <script?src="plugins/behaviors/index.js"></script>???? <script?src="plugins/packages/index.js"></script>???? <script?src="plugins/screen-diff/index.js"></script>???? </body>???? </html>
web.py代碼,打開html文件空白,沒有數(shù)據(jù)渲染加載。不用這個py啟動文件是正常的
import?web urls?=?( ????'/(.*)',?'hello' ) app?=?web.application(urls,?globals()) class?hello: ????def?GET(self,?name): ???????return?open(r'index.html',?'r').read().encode('utf-8') if?__name__?==?"__main__": ????app.run()
2022-05-05
應該是文件沒有加載到吧