Skip to content

用Iframe集体加载图片 #21

@AILINGANGEL

Description

@AILINGANGEL
var ifm = document.createElement('iframe')
    document.body.appendChild(ifm)
    var img = document.createElement('img')
    img.src = 'https://web.500px.com/static/media/editors_choice_3@2x.e96bc972.png'
    ifm.contentWindow.document.body.appendChild(img)
    setTimeout(function () {
      console.log('stop')
      ifm.contentWindow.stop()
    }, 100)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions