Preface After reading so many introductions to mini programs, I think all readers have a certain understanding of mini programs. This article will no longer focus on getting started. Now we will practice it through a Zhihu Daily mini program to deepen our understanding of the WeChat mini program API. Okay, let's get started. Let's start with the actual combat. First, let's take a look at the results of the Zhihu Daily we are going to do today. As shown below. However, due to space issues, today we will only talk about the completion of the homepage, which includes interaction with the backend, page layout, data rendering, event response, etc. It basically covers all development on how to make a single page. Zhihu Daily Mini Program Home Page 1. Resource preparation Zhihu Daily - Brief version API: new s-at.zhihu.com/api/4/news/latest Today’s Hot Articles news.at.zhihu.com/api/4/news/ before / More past hot articles The two addresses above are the APIs of the homepage we are going to do today. We will initiate a request request and get back the data for rendering. 2. Home page JS Next we will start writing code, please keep the home page title
1. WeChat Development Practical Zhihu Daily
#Introduction: Preface After reading so many introductions to mini programs, I believe that all readers have a certain understanding of mini programs. This article will no longer focus on getting started. Now we will practice it through a Zhihu Daily mini program to deepen our understanding of the WeChat mini program API. By the way, you can read this article to get started, which contains a preliminary introduction to the use of tools: p/37dfcea4a2f8 An introductory tutorial on WeChat applet development https://mp.weixin.qq.com/de...
2. Introduction to the development examples of Zhihu Daily, the WeChat mini program version
# #Introduction: I believe that everyone has been fascinated by mini programs recently, so I quickly picked up a mini program version of Zhihu Daily on the weekend to calm down my shock. This article mainly summarizes this development experience and the pitfalls I have encountered. Friends in need can refer to it.
3. Zhihu Daily Development Example for WeChat Mini Program
4.
First experience in WeChat applet development
5.
Use Redis to store ID continuous data
Introduction: I was designing and developing "Doodle 2" before When working on Zhihu Daily, the data type I face most is data with IDs. When using a relational database, an auto-incremented primary key can meet this requirement, but in Redis it is a little more troublesome. I have always used an additional counter to store the ID, for example (a lot of code is omitted, which does not affect the reading6.
How to get the pictures in Zhihu Daily?##Introduction: I am making a third-party Zhihu Daily, but the pictures cannot be obtained? Is there a pure front-end implementation?
7.
The problem of incompatibility between Xdebug and PHP versionIntroduction: Today I have been rewriting Zhihu Daily. After the PHP crawler has been running for a period of time, a memory leak occurred in the word segmentation module. After a rough inspection, I didn't find the cause, so I decided to install xdebug to check it out (although I don't know how to use it yet = =!). Originally, no errors were reported during the automatic installation according to [Official Documents] (http://xdebug.org/docs/install). 8. in php.ini Quant What Python knowledge should I learn? Introduction: RT reply content:
I went to Zhihu Daily to update my Python knowledge system and personal experience. You are welcome to comment. -------------------------------------------------- -------------------------------------------------- ---------Thank you for the invitation from Brother Long of Qingmu Capital! The answerer should be regarded as more of a trader rather than a quant (although he has some knowledge of quant. [Related Q&A recommendations]: android - RecyclerView cannot load data after parsing Zhihu Daily API android - ListView's onScroll has no effect
The above is the detailed content of Detailed summary of actual development Zhihu Daily. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
