JavaScript 参考手册
JavaScript anchor() 方法
创建 HTML
源代码:
点击运行 »
<script> var txt = "Chapter 10"; txt.anchor("chap10"); alert(txt.anchor("chap10")); </script>
1
<
script
>
2
var
txt
=
"Chapter 10"
;
3
txt
.
anchor
(
"chap10"
);
4
alert
(
txt
.
anchor
(
"chap10"
));
5
</
script
>
运行结果:
点击运行 »