码迷,mamicode.com
首页 > 编程语言 > 详细

JavaScript中fixed函数

时间:2016-06-25 16:19:42      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

  JavaScript中fixed函数是把 HTML 标记放置在 String 对象中的文本两端。

  strVariable.fixed( )

  必选项 strVariable 参数为任意的 String 对象或文字。

  下面的示例说明了 fixed 方法如何工作:http://www.mlybyby.com

  var strVariable = "This is a string object";

  strVariable = strVariable.fixed( );

  最后一条语句执行完后,strVariable 的值是:

  This is a string object

  不检查该标记是否已经被应用于该字符串了。

JavaScript中fixed函数

标签:

原文地址:http://www.cnblogs.com/hljmly/p/5616397.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!