-
-
Save longfeixiang/ed5cce0dfb68c11172710b7c7b6cf0d9 to your computer and use it in GitHub Desktop.
[oxfordlearnersdictionaries] 获取单词列表
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const r = [] | |
$('.top-g li').each((i, k) => { | |
// {hw: "a", ox3000: "a1", ox5000: "a1"} | |
if ($(k).hasClass('hidden')) { return } | |
const word = $(k).attr('data-hw') | |
const level = $(k).attr('data-ox3000') | |
r.push({ word, level }) | |
}) | |
console.log(JSON.stringify(r, null, 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment