4
我下载了pnotify jQuery插件从Pines Notifypnotify拒绝工作
只要它告诉我添加所需的js和css文件和文件准备以下应该工作!
$(document).ready(function() {
$.pnotify({
type: 'error',
title: 'Errors found in form',
text: 'Please check all form data, some items were invalid.',
opacity: 0.95,
hide:false,
history: false,
sticker: false
});
});
,但它只是不断给我的错误
Uncaught TypeError: Object function (e,t){return new v.fn.init(e,t,n)} has no method 'pnotify'
而且最愚蠢的事情是,即时通讯的视觉VS 2012,并从开发环境中它显示我pnotify为“$”作为一个功能智能感知!
我能做什么错?
requirejs.config({
paths: {
pnotify: "/Static/plugins/pnotify/pnotify.custom.min"
}
});
Notify.js
define(['pnotify'], function() {
return {
SimpleNotice: function() {
return new PNotify('Check me out! I\'m a notice.');
}
};
});
我复制这个从我的生产代码(迪朗达尔框架:
pnotify脚本加载不正确。查看浏览器开发工具的网络选项卡以确认。 – JJJ 2013-02-26 13:17:31
也检查过,它的加载非常好:( – Storm 2013-02-26 13:50:07
好吧,发现问题:P我已经在页面中包括2个不同版本的jQuery。 – Storm 2013-02-27 05:45:16