Table of Contents
回复内容:
Home Backend Development PHP Tutorial javascript - 何为微信开发?如果进行微信开发,可以用那些后台或者前端语言?

javascript - 何为微信开发?如果进行微信开发,可以用那些后台或者前端语言?

Jun 06, 2016 pm 08:25 PM
css html javascript node.js php

我在提问的之前有查过相关资料,但是阅读后还是不理解。我是一名初学者,很多概念都看不懂,望大家谅解,希望给出解答,谢谢大家。

我是web开发初学者,对于现在比较热门的微信开发不太理解。利用微信api进行开发到底是什么意思?微信api开发只是针对公众平台的吗?可以用那些后台或者前端语言呢?是不是一定要用PHP?

回复内容:

我在提问的之前有查过相关资料,但是阅读后还是不理解。我是一名初学者,很多概念都看不懂,望大家谅解,希望给出解答,谢谢大家。

我是web开发初学者,对于现在比较热门的微信开发不太理解。利用微信api进行开发到底是什么意思?微信api开发只是针对公众平台的吗?可以用那些后台或者前端语言呢?是不是一定要用PHP?

微信我也开发了快半年多了,微信开发分为2种
1.没有前端页面的,那么就不需要html的知识,懂得一门后端语言就可以了,可以是PHP/ASP/JAVA等,没有前端页面的微信长什么样呢,例子:打开微信,下面有一个“查看天气”的按钮,点击后窗口回复今天的天气,这个过程后台就需要根据微信api提供的规则去获取用户的行为(查看天气),然后从数据库或者别的地方找到数据并按照api的规则返回数据,然后就可以了,用户就会再窗口里收到。
2.有前端页面的,比如一个微信商城,点击公众号下面的按钮跳转到商城页面(网页),那么首先就需要开发一个手机端商城,需要html css js等前端语言,PHP/ASP/JAVA等后端语言,微信api在网页里面的应用么比如获取用户的openid等
目前我接触到的是这些

我就是做微信开发的,对于我们的项目是这样安排的:

前端页面展示使用PHP去做,然后独立一个项目组去专做基于微信的开发(使用java语言)。这个独立项目负责包装微信API,给前端PHP调用集成。微信api开发当然是针对微信公众平台,对基于各种类型的公众号(订阅号,服务号)做一些东西。
参考微信公众开发文档。http://mp.weixin.qq.com/wiki/16/992df48524118c3e89945856694b30cc.html

使用云端代码开发微信公众平台,这个需要有nodejs基础,比较容易上手:微信公众平台开发文档

微信开发,最好多看看文档,语言不是问题,如果用php的,可以了解下微擎、小猪等成熟东西

我一般分两种情况。。
第一种,H5 宣传页,这种后端几乎不需要做什么工作了,前端我一般就是采用 RequireJS,遵循 AMD, zeptojs + 各种类库写完效果收工。
第二种,暂且叫业务页面吧,我一般提倡前后端逻辑分离,后端不管你用什么语言都行,只暴露 API(如果有需要进一步开发 APP 的话,就省力了),然后采用 Token 的授权方式(https,https,https 重要的事情说三遍)与前端沟通,前端的话,我习惯用 AngularJS 来构建,后端准备充足的话,一般两三天即可收工。

  1. 微信提供了若干接口,通过这些接口,你可以做到包括但不限于:和用户进行文字互动,调用微信内置的二维码,调用微信用户信息,控制微信公众号的菜单等等等。基于这些接口,把你自己的想法在微信上承载起来,就是微信开发,举个例子,通过微信二维码扫描设计一个签到系统

  2. 目前只有公众号可以对接

  3. 前端当然是js,后端语言本质上不限制,PHP只是其中一个

微信开发,你要懂一门服务端编程语言,如果需要实现微信中访问你的页面一些业务,你需要懂h5相关技术

微信开发主要是指在微信平台上进行程序开发,主要有两种
一种是H5的页面,在微信中打开后使用嵌入的浏览器进行查看的
另一种就是可以在对话框中和微信会员交互
无论哪种,都需要后台。除非你的程序只是一个游戏,不需要存储任何的用户数据
后台语言啥都可以 。 主要可以访问,可以处理数据,可以返回数据就行。
前端Jjavascript 和 H5 不过微信貌似对JS限制比较大,主要还是微信封装的js为主

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How to play picture sequences smoothly with CSS animation? How to play picture sequences smoothly with CSS animation? Apr 04, 2025 pm 05:57 PM

How to achieve the playback of pictures like videos? Many times, we need to implement similar video player functions, but the playback content is a sequence of images. direct...

How to use Vue 3 to implement up scrolling loading function similar to WeChat chat records? How to use Vue 3 to implement up scrolling loading function similar to WeChat chat records? Apr 04, 2025 pm 03:51 PM

How to achieve upward scrolling loading similar to WeChat chat records? When developing applications similar to WeChat chat records, a common question is how to...

How to use CSS to achieve smooth playback effect of image sequences? How to use CSS to achieve smooth playback effect of image sequences? Apr 04, 2025 pm 04:57 PM

How to realize the function of playing pictures like videos? Many times, we need to achieve similar video playback effects in the application, but the playback content is not...

How to implement a tight transition animation in React using react-transition-group? How to implement a tight transition animation in React using react-transition-group? Apr 04, 2025 pm 11:27 PM

Using react-transition-group in React to achieve confusion about closely following transition animations. In React projects, many developers will choose to use react-transition-group library to...

The width of emsp spaces in HTML is inconsistent. How to reliably implement text indentation? The width of emsp spaces in HTML is inconsistent. How to reliably implement text indentation? Apr 04, 2025 pm 11:57 PM

Regarding the problem of inconsistent width of emsp spaces in HTML and Chinese characters in many web tutorials, it is mentioned that occupying the width of a Chinese character, but the actual situation is not...

【Rust Self-study】Introduction 【Rust Self-study】Introduction Apr 04, 2025 am 08:03 AM

1.0.1 Preface This project (including code and comments) was recorded during my self-taught Rust. There may be inaccurate or unclear statements, please apologize. If you benefit from it, it's even better. 1.0.2 Why is RustRust reliable and efficient? Rust can replace C and C, with similar performance but higher security, and does not require frequent recompilation to check for errors like C and C. The main advantages include: memory security (preventing null pointers from dereferences, dangling pointers, and data contention). Thread-safe (make sure multi-threaded code is safe before execution). Avoid undefined behavior (e.g., array out of bounds, uninitialized variables, or access to freed memory). Rust provides modern language features such as generics

How to quickly build a foreground page in a React Vite project using AI tools? How to quickly build a foreground page in a React Vite project using AI tools? Apr 04, 2025 pm 01:45 PM

How to quickly build a front-end page in back-end development? As a backend developer with three or four years of experience, he has mastered the basic JavaScript, CSS and HTML...

See all articles