这项工作就像一个普通的Ajax . load,但是你只需在你所获取的URL之后指定一个选择器即可。
This works just like a normal Ajax.load , but you just specify a selector immediately following the URL that you're retrieving.
当然,普通的 CSS 选择器规则也可以应用,所以可以根据小部件的上下文,用选择器规则在同一小部件上应用不同的样式。
Of course, normal CSS selector rules apply, and you can exploit them to apply different styles to the same widget type depending on its context.
应用推荐