Use ajax technology to dynamically call Sina stock real-time data without refreshing

亚连
Release: 2018-05-25 15:38:02
Original
2472 people have browsed it

Due to the recent slow internet speed, the web page cannot be opened when checking stock information. I have been studying ajax these days, so I used jquery to make a page that automatically reads Sina stock real-time data

Sina's financial channel has always felt that it has done a good job. However, due to the recent slow Internet speed, the web page cannot be opened when checking stock information. I have been studying ajax these days, so I used jquery to make a page that automatically reads Sina stock real-time data.

  ajax test     
股票代号 股票名称 当前价格 今日开盘 昨日收盘 当前差价 涨跌幅度 最高价格 最低价格
Copy after login

If you are used to using prototype, just replace the code in the script part.
Copy code The code is as follows:

 
Copy after login

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

A brief analysis of the use of Ajax in Asp.net MVC

JQuery Ajax dynamically generates Tables

A simple implementation of Ajax showing progress during the request

# #

The above is the detailed content of Use ajax technology to dynamically call Sina stock real-time data without refreshing. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!