Problems encountered when using the Layer plug-in-Layer crash and layer plug-in

Source: Internet
Author: User

Problems encountered when using the Layer plug-in-Layer crash and layer plug-in
I. Preface

As a result, I found a problem in the afternoon. Many of them are tears. Record them. If you encounter this mistake in the future, refer to it.

The pop-up Layer is required when several pages are created during the project. To facilitate the use of the Layer plug-in, write the Click Event inIn form (first pitfall ),Next, useButton (the beginning of tragedy ),Also put in form. The desired effect is that the layer pops up when I click the button.(Tragedy)

Okay, at the beginning of the giant hole, after the page is laid, it will be placed in the SSM framework. The problem occurs at the beginning, that is, the 404 address cannot be found, and the location cannot be used, the browser always reports an incorrect address. It took me two hours to put the Layer folder under the js file, so it's a bit confusing...

Right

 

The Skin folder, js folder, and Css folder are used.

 

Then there is an error:

 

Sincerely. After that, I put the Skin folder in js, which is just confusing. Indicates that the Layer has just been used.

Then the beginning of the giant hole

:

The pop-up Layer flashes back and finally finds it is a form problem. Think about it as impossible. The Layer cannot be placed in the form,

Finally, I will know

Originally, I used the Button in the form. When I click it, the default event will be triggered, and I did not fill in the form action, so the pop-up layer will crash !! Then I left the page in the SSM framework, and the consequence was that the request was sent to the business logic when I clicked, but I didn't write the request, so...

Here, form

 

And

 

Conclusion: I am in a good mood, but I have to reflect on it. The foundation is not solid. A small mistake can waste your whole day. Therefore, be careful.

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.