iT邦幫忙

0

有關於.load()函式的問題(已解決)

abc 2022-07-03 16:34:26705 瀏覽
  • 分享至 

  • xImage

如圖,目前我的這些檔案都存在於現在這個github repository中(暫且稱a區好了)。我現在有另外一個html至於b區(即另一個github repository),並且想引用a區中已經存在的header.html等等,因此我想要使用.load()函式。
但是.load()的檔案位置,我可以在a區的index.html中直接寫入header.html即可,但是當我嘗試用其他的寫法(例如permalink),.load()函式就會找不到header.html。
想要問一下如果b區想要.load() a區的header.html以及footer.html,可以怎麼做呢?

不好意思麻煩各位了~

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答