当城市只有一个词时,我的 JS 工作得很好:
- 芝加哥 ==> 芝加哥
 
但是当它
- 圣地亚哥 ==> 圣地亚哥
 
我如何使它成为圣地亚哥?
function convert_case() {
    document.profile_form.city.value =
        document.profile_form.city.value.substr(0,1).toUpperCase() + 
        document.profile_form.city.value.substr(1).toLowerCase();
}