Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我想在typescript的导航选项卡之间切换_Javascript_Html_Css_Angular_Twitter Bootstrap - Fatal编程技术网

Javascript 我想在typescript的导航选项卡之间切换

Javascript 我想在typescript的导航选项卡之间切换,javascript,html,css,angular,twitter-bootstrap,Javascript,Html,Css,Angular,Twitter Bootstrap,我有两个标签, 1) 注释和 2) 数据字符串。 在导航选项卡中 而有关的分区如下: 现在我想,单击该链接,我必须打开#nav datastringbox选项卡 所以,基本上,我的问题是如何从typescript打开另一个选项卡 任何人都可以帮我解决这个问题。您可以提供使用stackblitz的示例代码吗?您不能从Typescript打开选项卡,因为您的页面根本不使用Typescript。所有这些都会在运行时编译成JavaScript。简而言之,目前没有浏览器能够理解Typescript

我有两个标签, 1) 注释和 2) 数据字符串。 在导航选项卡中


而有关的分区如下:


现在我想,单击该链接,我必须打开#nav datastringbox选项卡

所以,基本上,我的问题是如何从typescript打开另一个选项卡


任何人都可以帮我解决这个问题。

您可以提供使用stackblitz的示例代码吗?您不能从Typescript打开选项卡,因为您的页面根本不使用Typescript。所有这些都会在运行时编译成JavaScript。简而言之,目前没有浏览器能够理解Typescript。然而,好消息是,您可以从JavaScript打开一个选项卡。你能解释一下“点击链接”的确切含义吗?哪个链接?@tao有一个名为test()的函数,我想从那里切换到另一个选项卡