摘 要: 针对PC端设计的网站在移动设备端直接显示时界面极不友好,而且有许多内容阅读者根本不感 兴趣。针对这种情况,本文实现了一种基于PC端网站的移动阅读解决方案。首先通过cURL函数获取HTTP和HTTPS 页面的HTML内容,然后从中提取读者感兴趣的数据并在移动端进行内容重构。在普通话水平测试成绩查询系统上所做 的实验表明:内容重构之后移动端的显示效果远胜于移动端浏览器直接打开网站的显示效果,而且显示内容更精准。 |
关键词: 移动阅读;cURL;ajax;jQuery;jQuery Mobile |
中图分类号: TP391.9
文献标识码: A
|
基金项目: 吕梁学院教学改革项目(JYZD201706);山西省教育厅教学改革项目(J2016115). |
|
A Solution to Mobile Reading Based on the PC Website |
XUE Yanfeng,GAO Zhi'e,GAO Wenlian
|
( Dept of Computer Science and Technology, Lvliang University, Lvliang 033000, China)
|
Abstract: When the websites designed for PC are displayed directly on the mobile devices,the interfaces are very unfriendly and a lot of contents are uninteresting for readers at all.In view of this problem,the paper proposes a mobile reading solution based on the PC website.The data,which readers are interested in,are extracted from the HTTP or HTTPS HTML contents of the page fetched by the cURL function and reconstructed in the mobile terminal.The experimental results from the PUTONGHUA SHUIPING CESHI (PSC) score query system show that the display effect after the reconstruction of the contents is far better than that directly through browsers on mobile devices,and the display contents are more accurate. |
Keywords: mobile reading;cURL;ajax;jQuery;jQuery mobile |