URL 參數 `X#Y` 中 `Y` 為分號分隔數字串,`split(";")` 得到字符串數組,需轉為 `int[]`。
const strArr = url.split("#")[1].split(";"); // ["27", "34"]
const intArr = strArr.map(s => parseInt(s, 10)); // [27, 34]
// 或兼容寫法
var intArr = strArr.map(function(s) { return parseInt(s, 10); });