diff --git a/img/127.png b/img/127.png new file mode 100644 index 0000000..5f74c76 Binary files /dev/null and b/img/127.png differ diff --git a/夜幕-第14课练习题CSS 反爬汽车网站/readme1.md b/夜幕-第14课练习题CSS 反爬汽车网站/readme1.md index 9f8edb3..7a38714 100644 --- a/夜幕-第14课练习题CSS 反爬汽车网站/readme1.md +++ b/夜幕-第14课练习题CSS 反爬汽车网站/readme1.md @@ -4,3 +4,36 @@ 请运用您所学到的知识,在本题的实战中获取汽车参数列表第二列字符串的总长度。 +参考案例 https://blog.csdn.net/weixin_39628186/article/details/111629103 + +找到 + + function _0x5ba2e2(_0x4515b7, _0x49e570) { + _0x45a615['' + _0x62ded7 + _0x293bc1('er') + _0x2803ba() + _0x139179() + _0x48b25b + _0x5c2751() + _0x294f8e()](_0x45a81a(_0x4515b7) + _0x542f0d() + '\x22' + _0x49e570 + '\x22\x20}', 0x0); + var _0x1e6df6 = _0x5b083f(_0x45a81a(_0x4515b7)); + for (x in _0x1e6df6) { + try { + _0x1e6df6[x]['currentStyle'] = ''; + } catch (_0x485b02) {} + } + } + + +改写成 + + function _0x5ba2e2(_0x4515b7, _0x49e570) { + _0x45a615['' + _0x62ded7 + _0x293bc1('er') + _0x2803ba() + _0x139179() + _0x48b25b + _0x5c2751() + _0x294f8e()](_0x45a81a(_0x4515b7) + _0x542f0d() + '\x22' + _0x49e570 + '\x22\x20}', 0x0); + var _0x1e6df6 = _0x5b083f(_0x45a81a(_0x4515b7)); + for (x in _0x1e6df6) { + try { + _0x1e6df6[x]['currentStyle'] = ''; + } catch (_0x485b02) {} + } + console.log(_0x4515b7, _0x49e570) + } + +在浏览器种运行测试 + +![debugger](../img/127.png) + +数字编号对应文字内容对应样式 `class="hs_kw57_configCP"` 中的数字