Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/369.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将股息事件转换为股息事件+;javascript/angularjs_Javascript_Angularjs - Fatal编程技术网

将股息事件转换为股息事件+;javascript/angularjs

将股息事件转换为股息事件+;javascript/angularjs,javascript,angularjs,Javascript,Angularjs,下面有什么简单的转换方法吗 想用空格和camelcase单独的单词替换uu 股息事件到股息事件尝试以下操作: 函数camelize(字符串){ 返回字符串.split(“”“).map(函数(项){ 返回项[0].toUpperCase()+项.substring(1).toLowerCase(); }).加入(“”); } console.log(camelize(“红利事件”);//股息事件

下面有什么简单的转换方法吗

想用空格和camelcase单独的单词替换uu

股息事件到股息事件

尝试以下操作:

函数camelize(字符串){
返回字符串.split(“”“).map(函数(项){
返回项[0].toUpperCase()+项.substring(1).toLowerCase();
}).加入(“”);
}
console.log(camelize(“红利事件”);//股息事件