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.