JavaScript自定义函数实现字符串StartWith和EndWith

输入:

字符串:




输出: