扩展Js的必要功能 Expand the commonly used function