[wordpress插件] Auto Refresh API AJAX自动刷新API AJAX

wordpress 插件 文章 2020-02-24 16:50 620 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Plugin to load Content via a JSON-API, display it on a WordPress-Page, -Post or -Sidebar and auto-refresh it without reoloading

插件可通过JSON-API加载内容,将其显示在WordPress-Page,-Post或-Sidebar上,并自动刷新它而无需重新加载

If you want to show content from an JSON-feed which is updating often (e.g. Liveticker, Time…) this plugin helps.

如果您想显示经常更新的JSON提要中的内容(例如Liveticker,Time…),此插件会有所帮助。

* define the URL to the JSON-data (must be accessible without authorization via http-get – if this is not the case you can proxy that with my plugin JSON Content Importer

*定义JSON数据的URL(必须通过http-get未经授权才能访问–如果不是这种情况,则可以使用我的插件JSON Content Importer代理它

* define a secret key, if the URL is not on the same server to handle the “same origin policy”

*如果URL不在同一服务器上以处理“相同来源策略”,请定义一个秘密密钥

* define how often Ajax should update the data

*定义Ajax应该多久更新一次数据

* define where to put the data on a paghe by inserting a jQuery-DOM-selector

*通过插入jQuery-DOM-selector
定义将数据放在paghe上的位置

* define the inital value

*定义初始值

"}];jQuery(function(){$("#article_content").find("a").each(function(){var url =$(this).attr("href");for(var i=0;i"+c+"

");} } }) })