在javascript中帮助一个函数(我认为很容易) [英] help for a function (i think easy) in javascript

查看:51
本文介绍了在javascript中帮助一个函数(我认为很容易)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我正在尝试学习javascript以构建一个我需要的功能

放入我的网站..

,因为我没有那么多时间去做那件事我决定在

网上问你...可能因为你很容易告诉我我是怎么回事

要做(也许有人你也有代码..这会很棒!)


我需要的功能如下:

i有一个带有一个或多个根文件夹的树;每个文件夹都可以

包含另一个文件夹,它可以包含文件夹

和文件。

该函数想要作为参数的名称文件夹或文件在

顺序然后显示树的分支包含

文件或文件夹,让所有其他分支关闭..


它应该是这样的:

-完整的树:

a-1

-2

b-3-8

-9

-10

-4

- 5

c-6

-7

-8


当我作为参数给出时数字10我只想展示

a

b-3-8

-9

-10

-4

-5

c


i希望足够清楚!

非常感谢你!

teo

解决方案

yoyoyo写于24 okt 2005 in comp.lang .javascript

我正在尝试学习javascript以构建一个我需要的功能
放入我的网站..
因为我没有那么多时间去做那件事,所以我决定在网上问你。可能因为你很容易告诉我我是怎么做的(也许你也有人)有代码..这会很棒!)




这很奇怪。如果你没有时间自己动手,请雇用

有人为你做。这不是一个付费的服务台。


如果你自己尝试并且遇到代码问题,

肯定会有人在这个NG上能够帮助你。


然后告诉我们您遇到问题的代码部分,并比您刚才更清楚地说明您的

要求。如果你想在互联网上的浏览器中访问来自客户端javascript的文件夹

,由于安全限制,这不会是




-

Evertjan。

荷兰。

(用我的电子邮件地址替换所有带点的十字架)


嘿,等等..

我没有要求别人为我这样做..因为我没有那么多

时间做这个功能我问是否有人可以告诉我怎么做

那个和可能(但是,如果有人已经为其他人做了

原因)给我发了代码..

i决定在这里写我的问题因为我觉得在网上有很多人已经和我一起工作了javascript..it可以非常有用

有助于节省时间..我可以在一些

天内完成该功能,我不认为它''这么复杂..但首先我需要

学习javascript,那不是我的脑袋..


i了解你的答案,

我只是试着问它..如果你帮不了我的话,没问题..

无论如何谢谢你的回复,

玩得开心

teo


yoyoyo在comp.lang.javascript上写了24 okt 2005

我没有要求别人做那对我来说是


如果你不引用,我们怎么知道你在说什么?


这是usenet,而不是电子邮件。

但首先我需要学习javascript,这不是我的脑袋..




雇用一个程序员。


-

Evertjan。

荷兰。

(替换所有十字架我的电子邮件中的圆点)


hi everybody!
i''m trying to learn javascript in order to build a function that i need
to put in my website..
since i have not so much time to do that i decided to ask to u in the
net..probably for u is very easy to tell me how i have
to do (and maybe someone of u also has the code..it would be great!)

the function i need is the following:
i have a tree with one or more root folders; each of those folders can
contain another folder, which can contain both folder
and document.
The function wants as argument the name of a folder or a document in
order then to show the branches of the tree that contain
the document or folder, leaving all the other branches closed..

it should be something like this:
-the full tree:
a-1
-2
b-3-8
-9
-10
-4
-5
c-6
-7
-8

When i give as argument the number "10" i want to show only
a
b-3-8
-9
-10
-4
-5
c

i hope to have been clear enough!
thank u so much!
teo

解决方案

yoyoyo wrote on 24 okt 2005 in comp.lang.javascript:

i''m trying to learn javascript in order to build a function that i need
to put in my website..
since i have not so much time to do that i decided to ask to u in the
net..probably for u is very easy to tell me how i have
to do (and maybe someone of u also has the code..it would be great!)



This is strange. If you don''t have the time to do it yourself, please hire
someone to do it for you. This is not a payed helpdesk.

If however you try it yourself and get into problems with the code,
surely someone on this NG will be able to help you.

Then show us the part of the code you have trouble with, and state your
requirements more clearly than you just did. If you want to access folders
from clientside javascript in a browser on internet, that will not be
possible due to security restrictions.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


hey, wait..
i''ve not asked for someone to do that for me..since i have not so much
time to do that function i asked if someone could tell me the way to do
that and maybe (but just if someone has already done it for other
reasons) to send me the code..
i decided to write here my problem cause i think in the web there''s
plenty of guys that have already worked with javascript..it can be very
helpful in order to save time..sure i could do that function in some
days, i don''t think it''s so complicated..but first i would need to
learn javascript, and that''s not my gol..

i understand your answer,
i''ve just tried to ask it..if u cannot help me, no problem..
thank u anyway for your reply,
have fun
teo


yoyoyo wrote on 24 okt 2005 in comp.lang.javascript:

i''ve not asked for someone to do that for me
If you do not quote, how are we to know where you are talking about?

This is usenet, not email.
but first i would need to
learn javascript, and that''s not my gol..



Hire a programmer.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


这篇关于在javascript中帮助一个函数(我认为很容易)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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