代碼:
jQuery("div[class*='ff'] .a").each((idx, elm) => {
elm.textContent = Array.from(elm.textContent).map(c => {
let charCode = c.charCodeAt(0);
return String.fromCharCode((charCode & ~0xf) | {
0x0: 0x4,
0x1: 0xb,
0x2: 0xf,
0x3: 0xc,
0x4: 0x2,
0x5: 0x7,
0x6: 0x8,
0x7: 0xd,
0x8: 0x9,
0x9: 0x6,
0xa: 0x0,
0xb: 0x3,
0xc: 0x1,
0xd: 0xa,
0xe: 0xe,
0xf: 0x5,
}[charCode % 16]);
}).join('');
jQuery(elm).css('font-family', 'PMingLiU');
});