本文介绍了相当于jQuery的“加载"在原型中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试查找以下jQuery javascript的等效项:
I am trying to find an equivalent for the following jQuery javascript:
var x1 = setInterval(function() { $('#status').load("processor.php", {value:'name'} );}, 5000 );
我需要在页面上的其他应用程序上使用Prototype,并且当我将jQuery和Prototype库都放到那里时,它们将无法配合.
I need to use Prototype for other applications on the page, and when I throw both jQuery and Prototype libraries in there they will not cooperate.
谢谢
推荐答案
您正在寻找原型的Ajax函数定期更新程序":
Prototype's Ajax function "periodical updater" is what you're looking for:
http://api.prototypejs.org/ajax/ajax/periodicalupdater.html
这篇关于相当于jQuery的“加载"在原型中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!