3

这些是数组中的单词

    WorkNumber
    WorkType
    Version 
    Status
    Module
    Priority
    AssignedBy
    AssignedTo
    Subject 
    Details 
    EstimatedTime 
    ActualTime
    CreatedDate
    ModifiedDate

我需要如下输出

Work Number
Work Type
Version 
Status
Module
Priority
Assigned By
Assigned To
Subject 
Details 
Estimated Time 
Actual Time
Created Date
Modified Date
4

1 回答 1

13

这就是你需要的:

"YourString".replace( /([a-z])([A-Z])/g, "$1 $2");

将输出:

"Your String"
于 2012-07-11T07:37:41.593 回答