gpt4 book ai didi

javascript - 这是什么 JQuery 脚本?

转载 作者:行者123 更新时间:2023-11-28 14:52:38 25 4
gpt4 key购买 nike

http://jqueryui.com/demos/autocomplete/#combobox

在右侧,有选择器选项卡(选中的箭头指向左侧)

这是什么 CSS 菜单?为什么我在 JQuery UI 网站上找不到它?

最佳答案

这不是插件,它只是页面上的一小段 html/css/javascript。

控制菜单的javascript在http://jqueryui.com/js/demos.js中.

具体部分:

//Rewrite and prepare links of right-hand sub navigation
$('#demo-config-menu a').each(function() {
$(this).attr('target', 'demo-frame');
$(this).click(function(e) {

resetDemos();
$(this).parents('ul').find('li').removeClass('demo-config-on');
$(this).parent().addClass('demo-config-on');

//Set the hash to the actual page without ".html"
window.location.hash = this.getAttribute('href').match((/\/([^\/\\]+)\.html/))[1];

loadDemo(this.getAttribute('href'));
e.preventDefault();

});
});

关于javascript - 这是什么 JQuery 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4295358/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com