微信小程序 —— 新闻阅读器(示例)
- 所有数据均为模拟的假数据,见
mock
文件夹 - 富文本解析使用 mp-html
微信小程序 —— 新闻阅读器
License: MIT License
微信小程序 —— 新闻阅读器(示例)
mock
文件夹在项目wechatapp-news-reader-master\utils\wxParse\html2json.js页面的 第81行。
wechatapp-news-reader-master\utils\wxParse\WxAutoImage.js页面的 第第33行使用了 console.dir这个API。
console.dir不是微信小程序官方文档支持的API,解析依赖与机主的js引擎,发生过无法解析导致项目crash的情况。
您好,方便确认一下问题吗,可以修改为console.log替代
老哥,仔细阅读了您的代码,加上我自己也在做类似的小程序,有点疑惑还望能解答下:
我是自己有个论坛,然后暴露了各种api出来,目前做的程度是
在header的类别中,通过wx.request
获取host.com/api/categories
,得到目录名称然后渲染出来,目录切换使用的也是查询e.target.id
做的;
主要遇到问题是,我的header里如何做到绑定不同路由呢,
我现在类别一栏中 设置了两种:一个是 “最新”帖子,其json地址为:host.com/api/recent
另外就是不同版块的json地址: host.com/api/category/{某种特定id}/{版块名称}
这样就涉及到请求不同路由加载内容详情的问题,我看一般类似的程序大家都是请求的单独一个url,通过判断id什么的做不同的路由更改,那你看我现在要是实现切换tab时,请求不同路由,这个应该按什么思路实现呢?网上搜索了好几天都不得要领,还请您指点一二。
https://ssl.52ahu.com/coverHttps.php?url=v2/news/detail.html
经过测试发现,详情页没有数据
你好,还在跟进这个项目吗?目前,不能获取新闻了,能不能交流下?谢谢啊
hello, thanks very much your contribution.
i am tempt using your frame work to contribute a app, but when i modify the json file in the mock dir, the content in the page is not change, can you give me a help, thanks very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.