Git Product home page Git Product logo

Comments (7)

85636682 avatar 85636682 commented on May 30, 2024

依然是这个错误!

from at.js.

ichord avatar ichord commented on May 30, 2024

我試試看.
BTW. 你的 coffee 可以這樣泡.:smile:

$('textarea').atWho '@'
    tpl : ''
    callback : (query, callback) ->
      $.ajax
        url : ''
        type : 'GET'
        success : (datas) ->
          callback(datas)

from at.js.

85636682 avatar 85636682 commented on May 30, 2024

application.js

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require autocomplete-rails
//= require jquery.form
//= require jquery.remotipart
//= require jquery.autogrow-textarea
//= require jquery.caret
//= require rails.validations
//= require bootstrap.min
//= require jquery.atwho
//= require app

application.css

/*
 *= require jquery.atwho
 *= require_self
*/

api返回的数据格式

[{"id":12,"nickname":"stephen"},{"id":13,"nickname":"ben"}]

from at.js.

ichord avatar ichord commented on May 30, 2024
  • 的確是程序的bug. 已經修復了. 你再試試看.不過現在gem沒有更新.
  • 如果 tpl 參數不使用的話不要作任何設置.

from at.js.

85636682 avatar 85636682 commented on May 30, 2024

哦,好的,我是用GEM安装的,我现在改用直接引用吧

from at.js.

85636682 avatar 85636682 commented on May 30, 2024

问题已经解决,测试通过,谢谢!
很佩服你们这些懂前台的!!

from at.js.

ichord avatar ichord commented on May 30, 2024

@85636682 好的.我現在更新到gem.
thanks. 😄 . 其實各有所長啦.

from at.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.