我使用SWF處理以下開關/情況:SWFAddress,爲多個級別寫入開關/外殼?
switch (e.value)
{
case "/A" :
function A();
break;
case "/B" :
function B();
break;
case "/C" :
function C();
break;
case "/" :
break;
}
問題是,當我在任何部分(A,B,或C)...有鏈接另一層面,說:
www.my-site.com/A/next-level-goes-here
www.my-site.com/A/something-else-in-the-A-level
www.my-site.com/A/third-thing-in-the-A-level
我想寫什麼,發生在一個內部嵌套的情況下,但我怎麼去呢?
function anythingNestedInsideOfA()
{
// handle all the stuff inside of A section here
}
這太神奇了,謝謝! – redconservatory 2010-09-21 20:17:42
或分割在「/」或「\」 – 2010-09-22 02:16:24