将其中的内容复制到html div中的javascript复制到我创建的另一个页面中 [英] javascript which copy content which is into a html div into another page created by me

查看:105
本文介绍了将其中的内容复制到html div中的javascript复制到我创建的另一个页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用javascript或jquery编写的内容来复制页面的内容(例如,有一个带有html表格的页面,其中有很多关于我城市的天气的字段,我想复制我将创建的网页中的字段(上午:10°C,下午:15°C,晚上:11°C). 显然,必须每隔X分钟(例如30分钟)重新加载字段,因为带有天气的字段每隔X分钟就会在其数据库中重新加载一次.

i need something written in javascript or jquery that copy a content of a page (for example there is a page with a html table in which there are lot of fields about the weather in my city, i'd like to copy the fields (morning: 10°C, afternoon: 15°C, evening: 11°C), in a web page i'll create). Obviusly that fields have to be reloaded every X minutes (for example 30 minutes) because the fields with the weather are reloaded every X minutes in their database.

我希望我的英语不会太差,所以您可以在这个问题上帮助我. 谢谢你们!

I hope my english is not to much bad, so you could help me in this problem. Thank yall!

推荐答案

我想您要问的是网页抓取.

有一个Javascript框架可以处理此问题,称为 PJScrape ,可能还有其他人和一个G *搜索会为您提供帮助.

There is a Javascript framework to handle this called PJScrape, there may be others and a G* search should help you.

stackexchange 上,还有一个关于简单抓取的问题.

There is also a question regarding simple scraping here on stackexchange.

这篇关于将其中的内容复制到html div中的javascript复制到我创建的另一个页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆