调用 anchor 方法来在 String 对象外创建一个命名的锚点。下面示例说明了 anchor 方法是如何实现这个的: var strVariable = "This is an anchor" ;
strVariable = strVariable.anchor("Anchor1");
执行完最后一条语句后 strVariable 的值为: <A NAME="Anchor1">This is an anchor</A>
不检查该标记是否已经被应用于该字符串。
strVariable = strVariable.anchor("Anchor1");
执行完最后一条语句后 strVariable 的值为: <A NAME="Anchor1">This is an anchor</A>
不检查该标记是否已经被应用于该字符串。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货