我在如下使用FrameWork7
頁面的簡單<a>
:Framework7 <a href="">不工作
<li><a href="https://www.google.com/"><img src="images/icons/black/users.png" alt="" title="" /><span>Go Google/span></a></li>
但是當我點擊它不重定向到Google網頁。我已檢查控制檯,它顯示如下:
XMLHttpRequest cannot load https://www.google.com/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
framework7.js:12307 XHR failed loading: GET "https://www.google.com/".$.ajax @ framework7.js:12307app.get @ framework7.js:1652app.router.load @ framework7.js:2648load @ framework7.js:636handleClicks @ framework7.js:7573handleLiveEvent @ framework7.js:11488
我是Framework7
的新手。我已經購買了開發模板。
感謝buddy它的工作 – Santhucool