Questions! The same Ajax request gets the picture road strength, in the Google Browser can display the picture correctly, in the Firefox browser shows the path undefined

Source: Internet
Author: User

Today's work to learn the road to meet a wonderful problem, as the primary siege lion of the niche really do not know how to solve, have been wall of the Niang all day long, have not solved the problem, it is helpless, a start to think that the browser is compatible with the problem, but left to see right, is not, also tried to not page load and after the Found also not, check the return of the results, incredibly is undefined, but in Google Browser no problem can be normal display pictures, in Firefox browser is like this, to see the illustrated words:

First of all, this tag for JS dynamic splicing page, because the access is the membership level, through the request interface in another system background crawl picture path, this splicing in the loop, each cycle is deposited into the array, and finally through the HTML () into the display page, For the invocation of JS in the method of getting the picture path: (The request and Java code is OK, the rest of the call is OK)

After the success of the request, through the first image passed down the Imgid value identification, and finally should be the corresponding SRC path stitching in.

Especially special special is that, in Firefox browser src although is undefined, but there are one or two is to display the normal path shows the picture, simply no solution.

Today is my daily study, although not the teaching of knowledge, but hope to work together to solve the problem, if I solve the problem, I will promptly send essays to answer, also hope that the great God can comment on the answer! The niche is extremely grateful!

My wish is to change the world!

Questions! The same Ajax request gets the picture road strength, in the Google Browser can display the picture correctly, in the Firefox browser shows the path undefined

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.