<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我按照这里的步骤操作:http://tympanus.net/codrops/2009/10/29/jbar-a-jquery-notification-plugin/
我只是想让它在 body 负荷时显示一个通知栏,但它不起作用。
我更改了与教程不同的一件事。我在 JQuery 插件的第 9 行做了 $(this).ready
。
谢谢!
编辑:它完美地绑定(bind)到 body ready。 (注意警报)。它只是不显示栏。
最佳答案
insertBefore($('.content'))
在我看来,您是在具有“内容”类的内容之前插入您的栏,但您没有任何具有该类的元素。
关于javascript - 谁能告诉我为什么我的 JQuery 插件不起作用?我仔细按照步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4363330/