当customerUserName值为英文时,则可正常执行,但是当customerUserName为中文时,则执行失败,在网上找了下,主要是要用encodeURIComponent这个方法,把字符串作为 URI 组件进行编码。问题解决了。