3

我刚刚开始使用noty.js,但是每当我尝试在“创建 noty”下执行超级基本示例时,我都会不断收到错误消息:

Uncaught TypeError: Property 'noty' of object function (a,b){return new e.fn.init(a,b,h)} is not a function 

jsfiddle

这是noty的问题,还是我的问题?

4

1 回答 1

6

最简单的例子是

noty({text: 'noty - a jquery notification library!'});

而不是你的

$.noty({text: 'noty - a jquery notification library!'});
于 2012-09-11T18:53:28.280 回答