输入两个字符串,从第一字符串中删除第二个字符串中所有的字符。 例如:第一个字符串是"They are students.",第二个字符串是”aeiou"。删除之后的第一个字符串变成"Thy r stdnts."。
示例1
输入
"They are students.","aeiou"
输出
"Thy r stdnts."
加载中...
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param source string字符串 原字符串 * @param remove string字符串 待删除字符组成的字符串 * @return string字符串 */ function removeCharacters( source , remove ) { // write code here } module.exports = { removeCharacters : removeCharacters };
"They are students.","aeiou"
"Thy r stdnts."