使用 AJAX 在 yui 3.2 中加载给定 URL 的内容
Y.one('#message').load('/ajax/test.html');
Y.one('#message').load('/ajax/test.html', '#foo');
加载给定 URL 的内容并用它替换 #message 的内容。
在 YUI 中,节点加载模块提供了此功能。如果选择器字符串作为第二个参数传递(假设内容是 HTML),YUI 还可以选择支持仅提取加载内容的一部分。
这在 yui3.3 中是可能的。 这在 yui 3.2 中也可能吗?因为我只想在 yui 3.2 中实现同样的事情?或者如果在 yui 3.2 中不可能,是否有其他解决方法?
请分享您的想法。任何帮助将不胜感激。
Y.one('#message').load('/ajax/test.html');
Y.one('#message').load('/ajax/test.html', '#foo');
Load the content of a given URL and replace the contents of #message with it.
In YUI, the node-load module provides this functionality. YUI also optionally supports extracting only a portion of the loaded content if a selector string is passed as the second argument (assuming the content is HTML).
This is possible in yui3.3.
Is this also possible in yui 3.2 also? because I want to implement same thing in yui 3.2 only? or Is there any other workaround for this if its not possible in yui 3.2?
Please share your ideas. Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论