Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出现$.tips is not a function 的报错 #28

Open
liu946 opened this issue Jul 19, 2015 · 2 comments
Open

出现$.tips is not a function 的报错 #28

liu946 opened this issue Jul 19, 2015 · 2 comments

Comments

@liu946
Copy link

liu946 commented Jul 19, 2015

一开始我认为是下载不全的问题,之后引用了你们的源还是出现这个问题。
调用方法如下

$(function () {
    initElementSize();
    // form submit updanmu
    $('#submit').click(function(){
        socket.emit('updanmu', getarray($('#form')));
        el=$.tips({
            content:'温馨提示内容',
            stayTime:2000,
            type:"success"
        })
        el.on("tips:hide",function(){
            console.log("tips hide");
        })
        return false;
    });
...
@fayching
Copy link
Member

引用的代码呢

@liu946
Copy link
Author

liu946 commented Jul 20, 2015

引用代码如下,这是我勾选了一些模块之后下载的。其中就勾选了tips,还有我把相关的库都改成您提供的http外链上的也还是出这问题。

    script(type="text/javascript", src="/js/jquery-1.11.1.min.js")
    script(type="text/javascript", src="/socket.io/socket.io.js")
    script(type="text/javascript", src="/js/lib/zepto.min.js")
    script(type="text/javascript", src="/js/frozen.js")
    script(type="text/javascript", src="/js/jquery.danmu.min.js")
    script(type="text/javascript", src="/js/danmuclient.js")
    link(rel="stylesheet", href="/css/danmuup.css")
    link(rel="stylesheet", href="/css/frozen.css")

我现在改成自己手动jquery做的隐现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants