dojo toolkit
You probably know by know that I enjoy using JavaScript-powered bookmarklets to retrieve information. I create a jQuery documentation bookmarklet, a MooTools class sniffer bookmarklet, and a even a bookmarklet to allow you to submit articles to Script & Style. I work extensively with Dojo on a day to day basis so I end up needing to review documentation often. I got tired of using the API's search methods and instead chose to create a bookmarklet to get quick access to what I want.
您可能知道,我喜欢使用JavaScript驱动的书签来检索信息。 我创建了一个jQuery文档书签 ,一个MooTools类嗅探器书签 ,甚至一个书签,使您可以将文章提交给Script&Style 。 我每天与Dojo进行广泛的合作,因此最终需要经常查看文档。 我已经厌倦了使用API的搜索方法,而是选择创建一个小书签来快速访问所需的内容。
JavaScript (The JavaScript)
(function()%7Bvar%20d=document,w=window,ds=d.getSelection,ws=w.getSelection,ss=d.selection;t=(ws)%3Fws():(ds)%3Fds():(ss)%3Fss.createRange().text:'';t=(t.toString().length)%3Ft:prompt('Please select the Dojo resource you would like to research.','');if(t)%7Ba='http://dojotoolkit.org/api/';u=a+t.split('.').join('/');f=function()%7Bx=w.open(u,'dwin','scrollbars=1,toolbar=0,resizable=1,status=1,width=600,height=600');if(!x)w.location.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(f,0);else%20f();%7D%7D)();
What a mess! Don't worry about it -- it's compact because your browsers want it that way. You may simply click the bookmarklet and type in the class name you want to find (ex: dijit.layout.TabContainer), or highlight a class name in the page and click the bookmarklet.
真是一团糟! 不用担心-它很紧凑,因为您的浏览器希望那样。 您可以简单地单击小书签,然后键入要查找的类名称(例如:dijit.layout.TabContainer),或在页面中突出显示一个类名,然后单击小书签。
Have fun with this bookmarklet -- it may save you some time.
祝您玩得开心!此书签可以为您节省一些时间。
dojo toolkit