Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to extract Code from Public pages in HTML5

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to extract code from public pages in HTML5", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let me lead you to study and learn how to extract code from public pages in HTML5.

Index.html:

Load ('conment/foot.html',function (responseTxt,statusTxt,xhr) {console.log (' responseTxt,statusTxt,xhr') / / console.log (responseTxt) / / console.log (statusTxt) / / console.log (xhr)})

Foot.html:

Document...

Key points:

When $('.footer') .load () is called, the HTML file must be opened in the server environment to succeed. You cannot double-click to open it.

After opening, the path of the browser should be http://127.0.0.1:8020/index.html

Not a path like file:///G:/html/index.html, otherwise it won't work on most browsers.

It is recommended to use the HBuilder editor, which creates a server environment at run time and previews it on other phones or computers on the local area network.

The above is all the content of the article "how to extract code from public pages in HTML5". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report