const input = [
{q: "58b988ff62279282090dd314"},
{q: "58b988ff62279282090dc152"},
{q: "58b988ff62279282090dbf09"}
];
input.forEach(({q}) => $(`[data-id="${q}"]`).css("background", "lime"));
如何驗證(q)值正則表達式?我如何驗證jQuery正則表達式?
我想用這種方式使用正則表達式代碼,因爲我的值總是在變化。
同時我在Greasemonkey上使用該代碼。
{q: "5..........................bf09"}
使用try/catch語句,並試圖「只是-A-test'.match(Q)>如果沒有失敗,這是好。 (確定在技術上確定) – twicejr