作者:哲纸 | 来源:互联网 | 2023-05-19 05:52
ImfairlynewtobothtoolsandneedtogohardcorewithbothasImanage,monitor,andtweakanew
I'm fairly new to both tools and need to go hardcore with both as I manage, monitor, and tweak a new site's design process. What sort of strategies should I ask be implemented that sets a good solid foundation for debugging, testing, and logging?
我对这两种工具都很熟悉,在管理、监视和调整新站点的设计过程时,都需要使用hardcore。要实现什么样的策略,才能为调试、测试和日志记录打下良好的基础?
[to the degree that back-end stuff can play a role - it's .net mvc thx
[从某种程度上说,后端内容可以发挥作用——它是。net mvc thx
6 个解决方案
1
First off make sure you've read Firebug's docs. Some of the commands work cross-brower with other tools as well.
首先,确保你读过Firebug的文档。有些命令也可以与其他工具进行交叉浏览。
A simple search query will show you all available extensions for Firebug. As some people mentioned - some of them are really helpful.
一个简单的搜索查询将显示所有可用的Firebug扩展。就像有些人提到的,有些是很有帮助的。
Also it's important not to limit yourself to just a single tool since you will most likely be developing for multiple browsers. So make sure you take a look at webkits developer tools (Safari, Chrome) as well. Here's a good article which sums up the most popular development/debug tools.
同样重要的是不要把自己局限在一个工具上,因为您很可能要为多个浏览器开发。所以一定要看看webkit开发工具(Safari, Chrome)。这里有一篇很好的文章总结了最流行的开发/调试工具。
You might want to research how jQuery/jQuery plugins are structured/organized so you have general idea how to organise your own Javascript/jQuery code. It all depends how Javascript heavy is your application. If jQuery just provides some visual enhancements and few Ajaxified pages here and there, don't bother. From other hand if it's very Javascript heavy (as in a lot more site logic on client-side then on backend) I would suggest Prototype over jQuery, but it's just my opinion.
您可能想要研究jQuery/jQuery插件的结构/组织方式,以便了解如何组织自己的Javascript/jQuery代码。这一切都取决于你的应用程序Javascript有多繁重。如果jQuery只是提供了一些视觉增强,并且这里和那里几乎没有Ajaxified页面,那么就不用麻烦了。另一方面,如果Javascript很重(在客户端和后端站点逻辑中),我建议使用jQuery原型,但这只是我的看法。
You could consider using automatic tools to build your Javascript if you have a lot of code. For example:
如果您有很多代码,可以考虑使用自动工具构建Javascript。例如:
On production server you want to end up with as few Javascript files as possible and make sure to compress em.
在生产服务器上,您希望使用尽可能少的Javascript文件,并确保压缩em。
If you're interested in more links to articles/tools for Javascript heavy applications, drop a comment. I'm just trying to stay on topic at the moment.
如果您对Javascript重应用程序的文章/工具的更多链接感兴趣,请发表评论。我只是想暂时停留在这个话题上。