如何枚举网页可用的所有脚本? [英] How would I enumerate all the scripts available to a web page?

查看:95
本文介绍了如何枚举网页可用的所有脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我有一个网页,它使用服务器上的js文件。我无法在html中看到我可用的所有

javascript函数。我想有一个

函数可以打印到例如DIV部分,所有可用的函数。

只是函数名称没问题。


有没有办法在javascript中执行此操作?


Angus

解决方案

Angus于2007年4月15日在comp.lang.javascript 写道:


我有一个网页,它使用服务器上的js文件。我看不到

我在html中可用的所有javascript函数。我想

喜欢有一个功能可以打印到例如DIV部分,所有

可用功能。只是函数名称没问题。



为什么不下载js.file并在记事本中读取它?


-

Evertjan。

荷兰。

(请在我的电子邮件地址中将x'变为点数)


Angus在2007年4月15日下午5:26发表以下内容:


你好


我有一个网页,它使用服务器上的js文件。我无法在html中看到我可用的所有

javascript函数。我想有一个

函数可以打印到例如DIV部分,所有可用的函数。

只是函数名称没问题。


有没有办法在javascript中执行此操作?



是的。


-

兰迪

机会有利于准备好的思想

comp.lang.javascript常见问题 - http ://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/


是的,我知道我可以做到。我正在尝试自动化一些网页和

需要能够以编程方式枚举可用的javascript函数

(通过javascript)。


是否有某种脚本集合?或者以编程方式枚举

javascript对象的某种方式?


Evertjan。 < ex ************** @ interxnl.netwrote in message

news:Xn **************** **** @ 194.109.133.242 ...


Angus于2007年4月15日在comp.lang.javascript中写道


我有一个网页,它使用服务器上的js文件。我看不到

我在html中可用的所有javascript函数。我想

喜欢有一个功能可以打印到例如DIV部分,所有

可用功能。只是函数名称很好。



为什么不下载js.file并在记事本中阅读?


-

Evertjan。

荷兰。

(请将我的电子邮件地址中的x'变为点数)



Hello

I have a web page which uses a js file on the server. I cannot see all the
javascript functions available to me in the html. I would like to have a
function which could print eg to a DIV section, all the available functions.
Just the function names is fine.

Is there any way to do this in javascript?

Angus

解决方案

Angus wrote on 15 apr 2007 in comp.lang.javascript:

I have a web page which uses a js file on the server. I cannot see
all the javascript functions available to me in the html. I would
like to have a function which could print eg to a DIV section, all the
available functions. Just the function names is fine.

Why not download the js.file and read it in notepad?

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


Angus said the following on 4/15/2007 5:26 PM:

Hello

I have a web page which uses a js file on the server. I cannot see all the
javascript functions available to me in the html. I would like to have a
function which could print eg to a DIV section, all the available functions.
Just the function names is fine.

Is there any way to do this in javascript?

Yes.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Yes I realise I can do that. I am trying to automate some web pages and
need to be able to enumerate javascript functions available programmatically
(well via javascript).

Is there some sort of script collection? Or some way of enumerating the
javascript objects programmatically?

"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn********************@194.109.133.242...

Angus wrote on 15 apr 2007 in comp.lang.javascript:

I have a web page which uses a js file on the server. I cannot see
all the javascript functions available to me in the html. I would
like to have a function which could print eg to a DIV section, all the
available functions. Just the function names is fine.


Why not download the js.file and read it in notepad?

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)



这篇关于如何枚举网页可用的所有脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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