更轻松的书签开发 [英] easier bookmarklet development

查看:105
本文介绍了更轻松的书签开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我开发书签的方法:我编写一个javascript函数,将其传递给Bookmarklet Builder制作书签,将书签添加到浏览器,加载我的测试网页,测试书签,然后不起作用,所以我试着找出什么是错的,并相应地改变我的javascript函数,再次开始繁琐的循环。



如何让这个循环不那么繁琐?

解决方案

使用firebug控制台开发和测试你的函数,并在你按照自己想要的方式工作后将它变成一个书签。 / p>

Here's how I make develop a bookmarklet: I write a javascript function, pass that to Bookmarklet Builder to make a bookmarklet, add the bookmarklet to my browser, load my test webpage, test the bookmarklet, and then something doesn't work, so I try to find what's wrong and change my javascript function accordingly and the tedious cycle starts again.

How can I make this cycle less tedious?

解决方案

use the firebug console to develop and test your function, and turn it into a bookmarklet once you've got it working like you want to.

这篇关于更轻松的书签开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆