Rumah  >  Artikel  >  hujung hadapan web  >  Javascript实现页面重载的535种方式

Javascript实现页面重载的535种方式

一个新手
一个新手asal
2017-10-14 10:37:231648semak imbas

完全出于好玩,竟然有人整理了500多种方法来实现刷新一下页面,也是没sei了!


location = location

... and a 534 other ways to reload the page with JavaScript

  1. location = location
    location = location.href
    location = window.location
    location = self.location
    location = window.location.href
    location = self.location.href
    location = location['href']
    location = window['location']
    location = window['location'].href
    location = window['location']['href']
    location = window.location['href']
    location = self['location']
    location = self['location'].href
    location = self['location']['href']
    location = self.location['href']
    location.assign(location)
    location.replace(location)
    window.location.assign(location)
    window.location.replace(location)
    self.location.assign(location)
    self.location.replace(location)
    location['assign'](location)
    location['replace'](location)
    window.location['assign'](location)
    window.location['replace'](location)
    window['location'].assign(location)
    window['location'].replace(location)
    window['location']['assign'](location)
    window['location']['replace'](location)
    self.location['assign'](location)
    self.location['replace'](location)
    self['location'].assign(location)
    self['location'].replace(location)
    self['location']['assign'](location)
    self['location']['replace'](location)
    location.href = location
    location.href = location.href
    location.href = window.location
    location.href = self.location
    location.href = window.location.href
    location.href = self.location.href
    location.href = location['href']
    location.href = window['location']
    location.href = window['location'].href
    location.href = window['location']['href']
    location.href = window.location['href']
    location.href = self['location']
    location.href = self['location'].href
    location.href = self['location']['href']
    location.href = self.location['href']
    location.assign(location.href)
    location.replace(location.href)
    window.location.assign(location.href)
    window.location.replace(location.href)
    self.location.assign(location.href)
    self.location.replace(location.href)
    location['assign'](location.href)
    location['replace'](location.href)
    window.location['assign'](location.href)
    window.location['replace'](location.href)
    window['location'].assign(location.href)
    window['location'].replace(location.href)
    window['location']['assign'](location.href)
    window['location']['replace'](location.href)
    self.location['assign'](location.href)
    self.location['replace'](location.href)
    self['location'].assign(location.href)
    self['location'].replace(location.href)
    self['location']['assign'](location.href)
    self['location']['replace'](location.href)
    window.location = location
    window.location = location.href
    window.location = window.location
    window.location = self.location
    window.location = window.location.href
    window.location = self.location.href
    window.location = location['href']
    window.location = window['location']
    window.location = window['location'].href
    window.location = window['location']['href']
    window.location = window.location['href']
    window.location = self['location']
    window.location = self['location'].href
    window.location = self['location']['href']
    window.location = self.location['href']
    location.assign(window.location)
    location.replace(window.location)
    window.location.assign(window.location)
    window.location.replace(window.location)
    self.location.assign(window.location)
    self.location.replace(window.location)
    location['assign'](window.location)
    location['replace'](window.location)
    window.location['assign'](window.location)
    window.location['replace'](window.location)
    window['location'].assign(window.location)
    window['location'].replace(window.location)
    window['location']['assign'](window.location)
    window['location']['replace'](window.location)
    self.location['assign'](window.location)
    self.location['replace'](window.location)
    self['location'].assign(window.location)
    self['location'].replace(window.location)
    self['location']['assign'](window.location)
    self['location']['replace'](window.location)
    self.location = location
    self.location = location.href
    self.location = window.location
    self.location = self.location
    self.location = window.location.href
    self.location = self.location.href
    self.location = location['href']
    self.location = window['location']
    self.location = window['location'].href
    self.location = window['location']['href']
    self.location = window.location['href']
    self.location = self['location']
    self.location = self['location'].href
    self.location = self['location']['href']
    self.location = self.location['href']
    location.assign(self.location)
    location.replace(self.location)
    window.location.assign(self.location)
    window.location.replace(self.location)
    self.location.assign(self.location)
    self.location.replace(self.location)
    location['assign'](self.location)
    location['replace'](self.location)
    window.location['assign'](self.location)
    window.location['replace'](self.location)
    window['location'].assign(self.location)
    window['location'].replace(self.location)
    window['location']['assign'](self.location)
    window['location']['replace'](self.location)
    self.location['assign'](self.location)
    self.location['replace'](self.location)
    self['location'].assign(self.location)
    self['location'].replace(self.location)
    self['location']['assign'](self.location)
    self['location']['replace'](self.location)
    window.location.href = location
    window.location.href = location.href
    window.location.href = window.location
    window.location.href = self.location
    window.location.href = window.location.href
    window.location.href = self.location.href
    window.location.href = location['href']
    window.location.href = window['location']
    window.location.href = window['location'].href
    window.location.href = window['location']['href']
    window.location.href = window.location['href']
    window.location.href = self['location']
    window.location.href = self['location'].href
    window.location.href = self['location']['href']
    window.location.href = self.location['href']
    location.assign(window.location.href)
    location.replace(window.location.href)
    window.location.assign(window.location.href)
    window.location.replace(window.location.href)
    self.location.assign(window.location.href)
    self.location.replace(window.location.href)
    location['assign'](window.location.href)
    location['replace'](window.location.href)
    window.location['assign'](window.location.href)
    window.location['replace'](window.location.href)
    window['location'].assign(window.location.href)
    window['location'].replace(window.location.href)
    window['location']['assign'](window.location.href)
    window['location']['replace'](window.location.href)
    self.location['assign'](window.location.href)
    self.location['replace'](window.location.href)
    self['location'].assign(window.location.href)
    self['location'].replace(window.location.href)
    self['location']['assign'](window.location.href)
    self['location']['replace'](window.location.href)
    self.location.href = location
    self.location.href = location.href
    self.location.href = window.location
    self.location.href = self.location
    self.location.href = window.location.href
    self.location.href = self.location.href
    self.location.href = location['href']
    self.location.href = window['location']
    self.location.href = window['location'].href
    self.location.href = window['location']['href']
    self.location.href = window.location['href']
    self.location.href = self['location']
    self.location.href = self['location'].href
    self.location.href = self['location']['href']
    self.location.href = self.location['href']
    location.assign(self.location.href)
    location.replace(self.location.href)
    window.location.assign(self.location.href)
    window.location.replace(self.location.href)
    self.location.assign(self.location.href)
    self.location.replace(self.location.href)
    location['assign'](self.location.href)
    location['replace'](self.location.href)
    window.location['assign'](self.location.href)
    window.location['replace'](self.location.href)
    window['location'].assign(self.location.href)
    window['location'].replace(self.location.href)
    window['location']['assign'](self.location.href)
    window['location']['replace'](self.location.href)
    self.location['assign'](self.location.href)
    self.location['replace'](self.location.href)
    self['location'].assign(self.location.href)
    self['location'].replace(self.location.href)
    self['location']['assign'](self.location.href)
    self['location']['replace'](self.location.href)
    location['href'] = location
    location['href'] = location.href
    location['href'] = window.location
    location['href'] = self.location
    location['href'] = window.location.href
    location['href'] = self.location.href
    location['href'] = location['href']
    location['href'] = window['location']
    location['href'] = window['location'].href
    location['href'] = window['location']['href']
    location['href'] = window.location['href']
    location['href'] = self['location']
    location['href'] = self['location'].href
    location['href'] = self['location']['href']
    location['href'] = self.location['href']
    location.assign(location['href'])
    location.replace(location['href'])
    window.location.assign(location['href'])
    window.location.replace(location['href'])
    self.location.assign(location['href'])
    self.location.replace(location['href'])
    location['assign'](location['href'])
    location['replace'](location['href'])
    window.location['assign'](location['href'])
    window.location['replace'](location['href'])
    window['location'].assign(location['href'])
    window['location'].replace(location['href'])
    window['location']['assign'](location['href'])
    window['location']['replace'](location['href'])
    self.location['assign'](location['href'])
    self.location['replace'](location['href'])
    self['location'].assign(location['href'])
    self['location'].replace(location['href'])
    self['location']['assign'](location['href'])
    self['location']['replace'](location['href'])
    window['location'] = location
    window['location'] = location.href
    window['location'] = window.location
    window['location'] = self.location
    window['location'] = window.location.href
    window['location'] = self.location.href
    window['location'] = location['href']
    window['location'] = window['location']
    window['location'] = window['location'].href
    window['location'] = window['location']['href']
    window['location'] = window.location['href']
    window['location'] = self['location']
    window['location'] = self['location'].href
    window['location'] = self['location']['href']
    window['location'] = self.location['href']
    location.assign(window['location'])
    location.replace(window['location'])
    window.location.assign(window['location'])
    window.location.replace(window['location'])
    self.location.assign(window['location'])
    self.location.replace(window['location'])
    location['assign'](window['location'])
    location['replace'](window['location'])
    window.location['assign'](window['location'])
    window.location['replace'](window['location'])
    window['location'].assign(window['location'])
    window['location'].replace(window['location'])
    window['location']['assign'](window['location'])
    window['location']['replace'](window['location'])
    self.location['assign'](window['location'])
    self.location['replace'](window['location'])
    self['location'].assign(window['location'])
    self['location'].replace(window['location'])
    self['location']['assign'](window['location'])
    self['location']['replace'](window['location'])
    window['location'].href = location
    window['location'].href = location.href
    window['location'].href = window.location
    window['location'].href = self.location
    window['location'].href = window.location.href
    window['location'].href = self.location.href
    window['location'].href = location['href']
    window['location'].href = window['location']
    window['location'].href = window['location'].href
    window['location'].href = window['location']['href']
    window['location'].href = window.location['href']
    window['location'].href = self['location']
    window['location'].href = self['location'].href
    window['location'].href = self['location']['href']
    window['location'].href = self.location['href']
    location.assign(window['location'].href)
    location.replace(window['location'].href)
    window.location.assign(window['location'].href)
    window.location.replace(window['location'].href)
    self.location.assign(window['location'].href)
    self.location.replace(window['location'].href)
    location['assign'](window['location'].href)
    location['replace'](window['location'].href)
    window.location['assign'](window['location'].href)
    window.location['replace'](window['location'].href)
    window['location'].assign(window['location'].href)
    window['location'].replace(window['location'].href)
    window['location']['assign'](window['location'].href)
    window['location']['replace'](window['location'].href)
    self.location['assign'](window['location'].href)
    self.location['replace'](window['location'].href)
    self['location'].assign(window['location'].href)
    self['location'].replace(window['location'].href)
    self['location']['assign'](window['location'].href)
    self['location']['replace'](window['location'].href)
    window['location']['href'] = location
    window['location']['href'] = location.href
    window['location']['href'] = window.location
    window['location']['href'] = self.location
    window['location']['href'] = window.location.href
    window['location']['href'] = self.location.href
    window['location']['href'] = location['href']
    window['location']['href'] = window['location']
    window['location']['href'] = window['location'].href
    window['location']['href'] = window['location']['href']
    window['location']['href'] = window.location['href']
    window['location']['href'] = self['location']
    window['location']['href'] = self['location'].href
    window['location']['href'] = self['location']['href']
    window['location']['href'] = self.location['href']
    location.assign(window['location']['href'])
    location.replace(window['location']['href'])
    window.location.assign(window['location']['href'])
    window.location.replace(window['location']['href'])
    self.location.assign(window['location']['href'])
    self.location.replace(window['location']['href'])
    location['assign'](window['location']['href'])
    location['replace'](window['location']['href'])
    window.location['assign'](window['location']['href'])
    window.location['replace'](window['location']['href'])
    window['location'].assign(window['location']['href'])
    window['location'].replace(window['location']['href'])
    window['location']['assign'](window['location']['href'])
    window['location']['replace'](window['location']['href'])
    self.location['assign'](window['location']['href'])
    self.location['replace'](window['location']['href'])
    self['location'].assign(window['location']['href'])
    self['location'].replace(window['location']['href'])
    self['location']['assign'](window['location']['href'])
    self['location']['replace'](window['location']['href'])
    window.location['href'] = location
    window.location['href'] = location.href
    window.location['href'] = window.location
    window.location['href'] = self.location
    window.location['href'] = window.location.href
    window.location['href'] = self.location.href
    window.location['href'] = location['href']
    window.location['href'] = window['location']
    window.location['href'] = window['location'].href
    window.location['href'] = window['location']['href']
    window.location['href'] = window.location['href']
    window.location['href'] = self['location']
    window.location['href'] = self['location'].href
    window.location['href'] = self['location']['href']
    window.location['href'] = self.location['href']
    location.assign(window.location['href'])
    location.replace(window.location['href'])
    window.location.assign(window.location['href'])
    window.location.replace(window.location['href'])
    self.location.assign(window.location['href'])
    self.location.replace(window.location['href'])
    location['assign'](window.location['href'])
    location['replace'](window.location['href'])
    window.location['assign'](window.location['href'])
    window.location['replace'](window.location['href'])
    window['location'].assign(window.location['href'])
    window['location'].replace(window.location['href'])
    window['location']['assign'](window.location['href'])
    window['location']['replace'](window.location['href'])
    self.location['assign'](window.location['href'])
    self.location['replace'](window.location['href'])
    self['location'].assign(window.location['href'])
    self['location'].replace(window.location['href'])
    self['location']['assign'](window.location['href'])
    self['location']['replace'](window.location['href'])
    self['location'] = location
    self['location'] = location.href
    self['location'] = window.location
    self['location'] = self.location
    self['location'] = window.location.href
    self['location'] = self.location.href
    self['location'] = location['href']
    self['location'] = window['location']
    self['location'] = window['location'].href
    self['location'] = window['location']['href']
    self['location'] = window.location['href']
    self['location'] = self['location']
    self['location'] = self['location'].href
    self['location'] = self['location']['href']
    self['location'] = self.location['href']
    location.assign(self['location'])
    location.replace(self['location'])
    window.location.assign(self['location'])
    window.location.replace(self['location'])
    self.location.assign(self['location'])
    self.location.replace(self['location'])
    location['assign'](self['location'])
    location['replace'](self['location'])
    window.location['assign'](self['location'])
    window.location['replace'](self['location'])
    window['location'].assign(self['location'])
    window['location'].replace(self['location'])
    window['location']['assign'](self['location'])
    window['location']['replace'](self['location'])
    self.location['assign'](self['location'])
    self.location['replace'](self['location'])
    self['location'].assign(self['location'])
    self['location'].replace(self['location'])
    self['location']['assign'](self['location'])
    self['location']['replace'](self['location'])
    self['location'].href = location
    self['location'].href = location.href
    self['location'].href = window.location
    self['location'].href = self.location
    self['location'].href = window.location.href
    self['location'].href = self.location.href
    self['location'].href = location['href']
    self['location'].href = window['location']
    self['location'].href = window['location'].href
    self['location'].href = window['location']['href']
    self['location'].href = window.location['href']
    self['location'].href = self['location']
    self['location'].href = self['location'].href
    self['location'].href = self['location']['href']
    self['location'].href = self.location['href']
    location.assign(self['location'].href)
    location.replace(self['location'].href)
    window.location.assign(self['location'].href)
    window.location.replace(self['location'].href)
    self.location.assign(self['location'].href)
    self.location.replace(self['location'].href)
    location['assign'](self['location'].href)
    location['replace'](self['location'].href)
    window.location['assign'](self['location'].href)
    window.location['replace'](self['location'].href)
    window['location'].assign(self['location'].href)
    window['location'].replace(self['location'].href)
    window['location']['assign'](self['location'].href)
    window['location']['replace'](self['location'].href)
    self.location['assign'](self['location'].href)
    self.location['replace'](self['location'].href)
    self['location'].assign(self['location'].href)
    self['location'].replace(self['location'].href)
    self['location']['assign'](self['location'].href)
    self['location']['replace'](self['location'].href)
    self['location']['href'] = location
    self['location']['href'] = location.href
    self['location']['href'] = window.location
    self['location']['href'] = self.location
    self['location']['href'] = window.location.href
    self['location']['href'] = self.location.href
    self['location']['href'] = location['href']
    self['location']['href'] = window['location']
    self['location']['href'] = window['location'].href
    self['location']['href'] = window['location']['href']
    self['location']['href'] = window.location['href']
    self['location']['href'] = self['location']
    self['location']['href'] = self['location'].href
    self['location']['href'] = self['location']['href']
    self['location']['href'] = self.location['href']
    location.assign(self['location']['href'])
    location.replace(self['location']['href'])
    window.location.assign(self['location']['href'])
    window.location.replace(self['location']['href'])
    self.location.assign(self['location']['href'])
    self.location.replace(self['location']['href'])
    location['assign'](self['location']['href'])
    location['replace'](self['location']['href'])
    window.location['assign'](self['location']['href'])
    window.location['replace'](self['location']['href'])
    window['location'].assign(self['location']['href'])
    window['location'].replace(self['location']['href'])
    window['location']['assign'](self['location']['href'])
    window['location']['replace'](self['location']['href'])
    self.location['assign'](self['location']['href'])
    self.location['replace'](self['location']['href'])
    self['location'].assign(self['location']['href'])
    self['location'].replace(self['location']['href'])
    self['location']['assign'](self['location']['href'])
    self['location']['replace'](self['location']['href'])
    self.location['href'] = location
    self.location['href'] = location.href
    self.location['href'] = window.location
    self.location['href'] = self.location
    self.location['href'] = window.location.href
    self.location['href'] = self.location.href
    self.location['href'] = location['href']
    self.location['href'] = window['location']
    self.location['href'] = window['location'].href
    self.location['href'] = window['location']['href']
    self.location['href'] = window.location['href']
    self.location['href'] = self['location']
    self.location['href'] = self['location'].href
    self.location['href'] = self['location']['href']
    self.location['href'] = self.location['href']
    location.assign(self.location['href'])
    location.replace(self.location['href'])
    window.location.assign(self.location['href'])
    window.location.replace(self.location['href'])
    self.location.assign(self.location['href'])
    self.location.replace(self.location['href'])
    location['assign'](self.location['href'])
    location['replace'](self.location['href'])
    window.location['assign'](self.location['href'])
    window.location['replace'](self.location['href'])
    window['location'].assign(self.location['href'])
    window['location'].replace(self.location['href'])
    window['location']['assign'](self.location['href'])
    window['location']['replace'](self.location['href'])
    self.location['assign'](self.location['href'])
    self.location['replace'](self.location['href'])
    self['location'].assign(self.location['href'])
    self['location'].replace(self.location['href'])
    self['location']['assign'](self.location['href'])
    self['location']['replace'](self.location['href'])
    location.reload()
    location['reload']()
    window.location.reload()
    window['location'].reload()
    window.location['reload']()
    window['location']['reload']()
    self.location.reload()
    self['location'].reload()
    self.location['reload']()
    self['location']['reload']()

Atas ialah kandungan terperinci Javascript实现页面重载的535种方式 . Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn