title: Is there any way to listen for the call of native object's method?
body: <p>Since localStorage can't set the expire time, I want to extend the original <code>setItem</code> api and <code>getItem</code> api to let it supports setting the expire time. To achieve that, I should find a way to listen for the call of <code>setItem</code> and <code>getItem</code> in order to proxy and change the native behavior. But it seems that <code>Proxy</code> or <code>Object.defineProperty</code> can't do this job. So is there any good idea?</p>