2

This is the part in my test file , Chrome can run the console.log value, but not in IE8. How to fix the code that make the IE8 can run the same circumstance ?

<script>
var f = function () {
    console.log(this.name);
};

var another = f.bind({ name: 'welcome' });


another();  // welcome
</script>
odinhusky
  • 21
  • 2

0 Answers0