我们如何链接两个jqueries? [英] How we link two jqueries?

查看:71
本文介绍了我们如何链接两个jqueries?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Plz帮助我如何链接两个jqueries

Plz help me how i can link two jqueries

推荐答案

你的问题不是很清楚,你可能想改写它。



但是,使用jQuery可以做的一件事是方法链接。这是一个操作的结果传递到下一个操作的地方,直到所有操作在链中完成。

这可以在这里的示例中看到;

http://www.jquery-tutorial.net/introduction/method-chaining/ [ ^ ]



您可以做的其他事情是将一个临时隐藏元素作为保持元素添加到DOM中,然后使用多个jQuery调用全部作用于临时DOM对象,然后生成最终结果。



我在声誉Water Chrome Extension中使用这种方法

谷歌Chrome扩展 - CodeProject声誉观察者 [ ^ ]
Your question isnt very clear, you maybe want to reword it.

However, one thing you can do with jQuery is method chaining. This is where the result of one operation is passed to the next until all operations are completed in the chain.
This can be seen in the example here;
http://www.jquery-tutorial.net/introduction/method-chaining/[^]

Other things that you can do is add a temporary hidden element into the DOM as a holding element and then use multiple jQuery calls all acting on the temporary DOM object to then generate the final result.

I use that approach in my Reputation Water Chrome Extension
Google Chrome Extension - CodeProject Reputation Watcher[^]


这篇关于我们如何链接两个jqueries?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆