站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:AJAX in Plugin
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==介绍== [[WordPress:AJAX|Ajax]] (Asynchronous JavaScript And XML) is a technology that allows a web page to update some of its information without a full page reload. It is used in the Administration sections of WordPress for auto-save of post edits, adding new categories, and other purposes. Some WordPress [[WordPress:Plugins]] also use AJAX for things like voting on post ratings and map refreshes. [[WordPress:AJAX|Ajax]] (异步 JavaScript 和 XML)是种技术,网页不需要载入整个页面,就可以更新一些信息。这种技术用在WordPress的管理部分,用来自动保存文章编辑内容,添加新的类别,以及其它用途。一些WordPress[[WordPress:Plugins|插件]]也使用AJAX,用于,如,对网页级别进行投票和更新地图。 This article, aimed at plugin developers, describes how to add Ajax to a plugin. Before reading this article, you should be familiar with the following: 本篇文章针对的是插件开发人员,描述了怎样将Ajax添加到插件上。阅读这篇文章之前,你应该熟悉: * [[WordPress:AJAX|Ajax]] - Overview of the technology * [[WordPress:AJAX|Ajax]] –技术概述 * [[WordPress:Writing a Plugin]] - How to write a plugin * [[WordPress:Writing a Plugin|编写插件]] – 怎样编写插件 * [[WordPress:Plugin API]] - Filters and actions - what they are and how to use them * [[WordPress:Plugin API|插件API]] - Filters and actions –为什么是这样的,以及怎样使用 * How to add HTML to the appropriate WordPress page, post, or screen -- for instance, if you want to add Ajax to administration screens you create, you will need to understand how to [[WordPress:Adding Administration Menus|add administration menus to WordPress]]; if you want to add Ajax to the display of a single post, you'll need to figure out the right filters and actions to add HTML to that spot on viewer-facing blog screens. This article does not cover these topics. *怎样将HTML添加到适当的WordPress页面,文章或者界面—例如,如果你想要将Ajax添加到你创建的管理界面,你就要明白怎样[[WordPress:Adding Administration Menus|将管理菜单添加到WordPress]];如果你想要将Ajax添加到显示的一篇文章中,你需要了解使用恰当的filters和actions,将HTML添加到访客浏览的博客界面的网页上。本篇文章不涉及这些话题。 * You will also need to know something about client-side JavaScript programming, PHP programming, and HTML, in order to use Ajax in WordPress. *你也需要知道关于用户区JavaScript,PHP程序设计和HTML的相关内容,便于在WordPress中使用Ajax。 It turns out that the techniques for adding Ajax to a plugin are quite different, depending on whether you want the Ajax functionality to be part of the WordPress administration screens, or to appear on the viewer-facing side of WordPress. So, this article treats those two possibilities separately (after discussing common considerations). 根据你是将Ajax功能添加为WordPress管理界面的一部分,还是添加到WordPress访客界面,将Ajax添加到插件的方法,差别很大。因此,这篇文章分别产生了这两种情况(讨论了一般的情况之后)。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)