fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.1 KiB

export declare type _string = {
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
startWith: (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
endWith: (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
getQuery: (str: string, name: string) => string | null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
appendQuery: (str: string, paras: {
[key: string]: string | number;
}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
replaceAll: (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
perfectStart: (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
allIndexOf: (str: string, sub: string) => number[];
5 years ago
};