Skip to content

Instantly share code, notes, and snippets.

View luanwulin's full-sized avatar

luanwulin

View GitHub Profile
@luanwulin
luanwulin / IE getter setter
Created February 25, 2019 14:32 — forked from asins/IE getter setter
IE中getter/setter 的实现
<!DOCTYPE html>
<html>
<head>
<title>A Crazy Getter/Setter Hack</title>
</head>
<body>
<ul>
<li>Object.defineProperty API:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty</li>
<li>https://github.com/RubyLouvre/avalon/blob/master/avalon.shim.js#L1394</li>
<li>https://gist.github.com/jeffrafter/189354</li>