简体   繁体   English

有谁知道DOM检查器JavaScript库或插件?

[英]Does anyone know a DOM inspector javascript library or plugin?

Does anyone know of a DOM inspector javascript library or plugin? 有谁知道DOM检查器JavaScript库或插件?

I want to use this code inside a website I am creating, I searched a lot but didn't find what I wanted except this one: http://slayeroffice.com/tools/modi/v2.0/modi_help.html 我想在我正在创建的网站中使用此代码,我搜索了很多但没有找到我想要的除了这个: http//slayeroffice.com/tools/modi/v2.0/modi_help.html

UPDATE: Seems that no one understood my question :( I want to find an example or plug-in which let me implement DOM inspector. I don't want a tool to inspect DOMs with; I want to write my own. 更新:似乎没有人理解我的问题:(我想找一个让我实现DOM检查器的示例或插件。我不想要一个工具来检查DOM;我想自己编写。

I am also looking for the same thing, and in addition to http://slayeroffice.com/tools/modi/v2.0/modi_help.html i found: http://www.selectorgadget.com/ ( https://github.com/iterationlabs/selectorgadget/ ) 我也在寻找相同的东西,除了http://slayeroffice.com/tools/modi/v2.0/modi_help.html我发现: http//www.selectorgadget.com/https:// github.com/iterationlabs/selectorgadget/

Also came across this https://github.com/josscrowcroft/Simple-JavaScript-DOM-Inspector 还遇到了这个https://github.com/josscrowcroft/Simple-JavaScript-DOM-Inspector

Unfortunately I haven't found anything based on jQuery. 不幸的是我没有找到任何基于jQuery的东西。 But "Javascript DOM Inspector" seems to be the right keywords to look for this kind of thing. 但“Javascript DOM Inspector”似乎是寻找此类事物的正确关键词。

I found this one: http://userscripts.org/scripts/review/3006 我找到了这个: http//userscripts.org/scripts/review/3006

And this one also is fine: 这一个也很好:

DOM Mouse-Over Element Selection and Isolation DOM鼠标悬停元素选择和隔离

Which is very simple with few lines of code and give me something good to edit a little and get exactly what i wanted. 这几行代码很简单,给我一些很好的编辑功能,并得到我想要的东西。

Firebug Lite怎么样 - 就像Firebug,但是你把它插入你的页面,所以你可以在大多数浏览器(包括非FF)上调试你的html,css,Javascript和DOM

Aardvark is a firefox extension officially but you can use that as a javascript library, too. Aardvark是正式的firefox扩展,但你也可以将它用作javascript库。 The inline demo in the said website is implemented using javascript. 所述网站中的内联演示使用javascript实现。 digg into the code & you'll find loader.js which is bootstrapping the Aardvark modules. 挖掘代码,你会发现loader.js引导Aardvark模块。

Very recently, I needed to develop an application using JavaScript : when any user click on an image of this site, it will send image URL to a specific location. 最近,我需要使用JavaScript开发应用程序:当任何用户点击此站点的图像时,它会将图像URL发送到特定位置。 Here is the article that helped me achieve that : AspBoss - Javascript Library for Dom Inspector 以下是帮助我实现这一目标的文章: AspBoss - 适用于Dom Inspector的Javascript库

And this is the code : 这是代码

// DOM Inspector
// version 0.1
// 2006-01-25
// Copyright (c) 2006, Onur Mat
//
// --------------------------------------------------------------------
//
// This user script allows you to interact with elements of a web page
// by moving mouse pointer on a web page and clicking on selected elements.
//
// To install for Firefox, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To install for Internet Explorer, you need Turnabout:
// http://www.reifysoft.com/turnabout.php
// See instructions for using Turnabout here:
// http://www.reifysoft.com/turnabout.php
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          DOM Inspector
// @namespace     http://www.dominspector.com/
// @description   Inspect DHTML DOM elements interactively
// @include       *
// ==/UserScript==

function DIOnMouseOver(evt)
{
    element = evt.target;   // not IE

    // set the border around the element
    element.style.borderWidth = '2px';
    element.style.borderStyle = 'solid';
    element.style.borderColor = '#f00';
}


function DIOnMouseOut(evt)
{
    evt.target.style.borderStyle = 'none';
}


function DIOnClick(evt)
{
    var selection = evt.target.innerHTML;

    alert('Element is: ' + evt.target.toString() + '\n\nSelection is:\n\n' + selection);
    return false;
}


document.addEventListener("mouseover", DIOnMouseOver, true);
document.addEventListener("mouseout", DIOnMouseOut, true);
document.addEventListener("click", DIOnClick, true);

Firebug is a good solution for Firefox. Firebug是Firefox的一个很好的解决方案。 You can browse a page's HTML, JavaScript, DOM, network activity, etc. Safari also has fairly good tools built-in (I'm using the Safari 4 beta at present), though I find it's easier to navigate around Firebug. 您可以浏览页面的HTML,JavaScript,DOM,网络活动等.Safari还内置了相当不错的工具(我目前正在使用Safari 4测试版),尽管我发现在Firebug中导航更容易。

一位同事向我推荐了这个:Web X-Ray Goggles https://secure.toolness.com/webxray/

Yes, there are plenty. 是的,有很多。 For example, Firefox has DOM Inspector , Firebug , and X-Ray . 例如,Firefox有DOM InspectorFirebugX-Ray I think Firebug is the best of the three, personally. 我认为Firebug是三个中最好的,个人而言。

IE8上的开发者工具

Try Backbase Debugger Application . 尝试Backbase调试器应用程序 It also has an I/O inspector. 它还有一个I / O检查器。

I used to use Firebug, and Firefox all the time, now thanks to IE8, which has really cool tool called Developer tools --- that allows to see all the Javascript, CSS and also allows to really cool debugging feature. 我曾经一直使用Firebug和Firefox,现在感谢IE8,它有一个非常酷的工具叫做开发工具---它可以让你看到所有的Javascript,CSS以及真正很酷的调试功能。 MICROSOFT is getting there ! MICROSOFT即将到来!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有谁知道 Chrome 如何监控 javascript 中 DOM 元素的更改并在 GUI 中复制它们的实现细节? - does anyone know the implementation details for how Chrome monitors changes to DOM elements in javascript and replicates them in the GUI? 有谁知道这里使用的是什么Javascript库? - Anyone know what Javascript library is used here? 有谁知道&lt;&lt; =在JavaScript中的作用 - Does anyone know what <<= does in a javascript 有谁知道 Javascript 中的 this 是什么意思? `ǀǀ+(ǀ==ǀ--&gt;ǀ+ǀ&lt;--ǀ==ǀ)+ǀǀ` - Does anyone know what this in Javascript means? `ǀǀ+(ǀ==ǀ-->ǀ+ǀ<--ǀ==ǀ)+ǀǀ` 有人知道健壮的JavaScript伪类类吗? - Does anyone know of a robust JavaScript pseudoclass class? 有谁知道如何为jQuery cycle插件设置回调函数? - Does anyone know how to set a callback function for the jQuery cycle plugin? 有谁知道在 django 表单集中进行动态计算的插件? - Does anyone know of a plugin to do dynamic calculations in the django formset? JavaScript如何知道元素在DOM中的位置? - How does JavaScript know where an element is the DOM? 有没有人知道一个名为jcf javascript自定义表单的插件? 我找不到一个回购网站或一些关于它的信息 - Does Anyone Know of a plugin called jcf javascript custom forms? I cannot find a repo a website or some infos about it 有没有人知道JS Chaining库允许延迟执行方法? - Does anyone know of a JS Chaining library that allows for deferred execution of methods?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM