轉義一下就行了code
data = data.replace(/\+/g, "%2B");co
data = data.replace(/\+/g,
"%2B"
);
data = data.replace(/\&/g, "%26");data
data = data.replace(/\&/g,
"%26"