摘要: Dom简介:Js通过标签筛选让html多文件联动 1、找到标签 获取单个元素 docum ent.getElemrntByID('i1') 获取多个元素(列表)document.getElemrntsByName('div') 获取多个元素(列表)document.getElemrntsByTagN 阅读全文
posted @ 2018-01-21 22:30 Leq123 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1、爬虫——智联招聘信息搜集 原文链接 1 #-*- coding: utf-8 -*- 2 import re 3 import csv 4 import requests 5 from tqdm import tqdm 6 from urllib.parse import urlencode 7 阅读全文
posted @ 2018-01-21 22:28 Leq123 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1、在HTML里的位置 1.1 body里面的最下面 1.2head里面的script标签里面,注意要用window.onload包裹,如下格式: <script type="text/javascript"> //页面加载完毕之后再加载这个标签 window.onload = function() 阅读全文
posted @ 2018-01-21 22:24 Leq123 阅读(121) 评论(0) 推荐(0) 编辑