Transport.js report hasOwnProperty object does not support this property

Source: Internet
Author: User
Tags hasownproperty
ECShop transport.js Error

The problem this time is that transport.js under IE prompts the object not to support the usage. The following code appears with an error location of 608 lines:

if (This.hasownproperty (k)) {

Take a closer look at the code, the main function of this judgment should be to determine the attributes. There may be errors that do not support this usage in IE due to differences in browsers.

The solution is simple, just add one more judgment:
if (This.hasownproperty&&this.hasownproperty (k)) {

can solve this problem.

The reason for this is also stated in the developer center of IE:The property is not supported by host objects that have Internet Explorer 8 and versions below it.

Link here: http://msdn.microsoft.com/zh-cn/library/ie/328kyd6z%28v=vs.94%29.aspx

Hope to help the same problem of children's shoes!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.