yui怎么使用啊_使用YUI和BOSS搜索站点书签

yui怎么使用啊

yui怎么使用啊

Ever wanted to search only the web site you're currently on? Not the page, but the whole site. And only this site, not the rest of the web. This bookmarklet does just that.

是否曾经想只搜索您当前所在的网站? 不是页面,而是整个站点。 而且只有这个网站,而不是其余的网站。 此小书签就是这样做的。

安装 (Install)

Right-click this link and add to your bookmarks/favorites. Or just drag to your bookmarks toolbar.

右键单击此链接,然后将其添加到您的书签/收藏夹。 或只是拖动到书签工具栏。

search site 搜索网站

Or if you don't want to add the bookmarklet, you can simply click the link above and try it out.

或者,如果您不想添加小书签,只需单击上面的链接并尝试一下。

(Use)

You can search any site. Just visit the site and click the bookmarklet. There's also keyboard navigation to move up/down the results. The search results display as you type and the first results is highlighted so you can just press Enter and follow the first match of your query.

您可以搜索任何站点。 只需访问该站点,然后单击书签即可。 还有键盘导航可以在结果中上/下移动。 键入时将显示搜索结果,并且突出显示第一个结果,因此您只需按Enter键,然后跟踪查询的第一个匹配项即可。

Here's a short video that shows how you can use the bookmarklet to search my blog.

这是一个简短的视频,显示了如何使用小书签搜索我的博客。

引擎盖下(Under the hood)

The bookmarklet uses YUI and BOSS to do its magic.

小书签使用YUI和BOSS进行魔术处理。

YUI (Yahoo User Interface) library's Dom, Event and Get utilities make a task like this so much easier.

YUI (雅虎用户界面)库的DOM,事件和获取事业做出这样的任务轻松多了。

BOSS (Build your Own Search Service) is a mildly confusing name for Yahoo Search's API second major iteration. The API allows you to specify a site (or sites) that you want to limit your search query.

BOSS (建立自己的搜索服务)是一个令人困惑的名字Yahoo Search的API的第二个主要迭代。 该API允许您指定要限制搜索查询的一个或多个站点。

The bookmarklet simply includes searchsite.js served from here; the bookmarklet was generated with the help of this bookmaker.

小书签仅包含从此处提供的searchsite.js ; 小书签是在此博彩公司的帮助下生成的。

给我看代码! (Show me code!)

It's on GitHub, right here under the searchsite directory, it's just one script file searchsite.js, not at all documented, but I hope you'll make sense of it.

这是在GitHub上,就在这里searchsite目录,它只是一个脚本文件searchsite.js ,一点都没有记载,但我希望你能理解它。

Tell your friends about this post on Facebook and Twitter

FacebookTwitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/search-site-bookmarklet-with-yui-and-boss/

yui怎么使用啊

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值