在线工具
网站地图    收藏    合作   
<

快捷菜单 返回顶部

fabric.js中文API

fabric.js中文在线API,fabric.js中文文档API大全

Namespace: string

fabric.util.string

String utilities字符串工具
Source:

Methods

(static) camelize(string) → {String}

Camelizes a string Camelizes字符串
Parameters:
Name Type Description
string String String to camelize字符串camelize
Source:
Returns:
Camelized version of a string
Type
String

(static) capitalize(string, firstLetterOnlyopt) → {String}

Capitalizes a string 利用一个字符串
Parameters:
Name Type Attributes Description
string String String to capitalize字符串大写
firstLetterOnly Boolean <optional>
If true only first letter is capitalized and other letters stay untouched, if false first letter is capitalized and other letters are converted to lowercase.如果为真,则只有首字母大写 如果错误的第一个字母是大写的,那么其他字母将保持不变 而其他字母则被转换为小写字母。
Source:
Returns:
Capitalized version of a string
Type
String

(static) escapeXml(string) → {String}

Escapes XML in a string 转义字符串中的XML
Parameters:
Name Type Description
string String String to escape字符串逃脱
Source:
Returns:
Escaped version of a string
Type
String

(static) graphemeSplit(textstring) → {Array}

Divide a string in the user perceived single units 将一个字符串划分为用户感知的单个单位
Parameters:
Name Type Description
textstring String String to escape字符串逃脱
Source:
Returns:
array containing the graphemes
Type
Array

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com