Jquery插件用法(Jquery plugin usage)
我想我在这里真的很蠢。 我正在尝试使用插件调用一个方法,我已经针对div元素进行了实例化。
该插件使用此处定义的锅炉板
插件工作,我使用以下实例化它
calendar = $('#calendar').Calendar({'weekStart': 1,'startDate':startDate,'endDate':endDate});
稍后当调用一个事件时,我想在该插件中调用一个方法但是我的生活我无法理解。
我尝试了所有不同方法的庄园,我最近的不成功的方法是
var thing = $('#calendar'); thing.Calendar.redraw({'startDate':startDate,'endDate':endDate});
任何帮助将非常感谢。
谢谢
艾伦
I think I'm being really stupid here. I'm trying to call a method using a plugin I've already instantiated against a div element.
The plugin is using the boiler plate as defined here
The plugin works and I instantiate it using the following
calendar = $('#calendar').Calendar({'weekStart': 1,'startDate':startDate,'endDate':endDate});
Some point later when an event is called I want to call a method in that plugin but the life of me I can't figure it out.
I've tried all manor of different approaches, my latest unsuccessful one was
var thing = $('#calendar'); thing.Calendar.redraw({'startDate':startDate,'endDate':endDate});
Any help would be very much appreciated.
Thanks
Alan
原文:https://stackoverflow.com/questions/13211646
最满意答案
我认为Twitter4j是最好的API
I think Twitter4j is good one it is most upto date API
相关问答
更多-
骷髅很近,但没有那么多特征(甚至没有关闭)。 Skeleton is close but doesn't have as many features (not even close).
-
我猜你可以像使用Tweetinvi一样设置身份验证,然后使用TwitterAccessor 。 您可以在此处找到文档: https : //github.com/linvi/tweetinvi/wiki/Custom-Queries#simple-query 我不是使用JSON,而是通过创建用[JsonProperty]属性( UserDTO中的示例)修饰的DTO来简化过程。 // Example of DTO class public class AdDTO { [JsonProperty("na ...
-
python-twitter应该涵盖前四个要求。 我以前使用过,开始使用它很容易。 为了利用Twitter的流式API,我建议tweetstream 。 这是一个很棒的Python模块,在发布Twitter时实时抓住Twitter。 根据您是否有花园/火炉访问twitter流,您只会收到一小部分Twitter推文。 使用tweetstream,您还可以提供搜索谓词列表,以过滤您要查找的特定推文。 我把它用于一个项目,涉及到在8小时内开展微波炉的工作,它的工作完美无缺。 这两个模块都可以通过Python的ea ...
-
我认为Twitter4j是最好的API I think Twitter4j is good one it is most upto date API
-
我过去曾使用过Twitter4J来开发一款效果很好的Twitter应用程序。 但是,我不确定它的OAuth支持有多好。 http://yusuke.homeip.net/twitter4j/en/index.html I've used Twitter4J in the past to develop a Twitter App with pretty good results. However, I'm not sure how good its OAuth support is. http://yusu ...
-
我通过使用Twitter RT和编辑源代码来使用API 1.1找到了解决方案 首先,我需要更改updateStatusUrl常量: const string _updateStatusUrl = "https://api.twitter.com/1.1/statuses/update.json"; 然后,在PostData方法中,我必须显式指定请求mime类型: Request.ContentType = "application/x-www-form-urlencoded"; 这对我有用。 我希望它能 ...
-
尝试在response2.getCode()之前检查response2.getCode() ,也许你得到一个错误(例如403 - 禁止)并且你忽略它。 希望能帮助到你。 Try checking response2.getCode() before response2.getBody(), maybe you're getting an error (such a 403 - forbidden) and you're ignoring it. Hope it helps.
-
我目前正在扩展Twitterizer的新重写( http://code.google.com/p/twitterizer ),一旦在新版本中添加了正确的方法,你应该能够做到这一点以一种相当直接的方式。 获取要转发的用户的用户时间表。 找到推文(又名状态)。 调用转推方法。 以下是您可能需要的原始API调用: https://dev.twitter.com/docs/api/1/get/statuses/user_timeline (第2步没有API调用) https://dev.twitter.com/do ...
-
Java Twitter API [关闭](Java Twitter API [closed])[2022-04-29]
试试Twitter4J - http://twitter4j.org/en/index.html Try Twitter4J - http://twitter4j.org/en/index.html -
grails插件使用JTwitter。 对我来说Twitter4j看起来更好,因为: 它看起来更严重 - 它们提供了git存储库,javadoc,支持矩阵。 JTwitter没有。 在JTwitter页面的底部,它表示如果使用反向链接,则必须包含反向链接。 The grails plugin uses JTwitter. To me Twitter4j looks better, because: it looks more serious - they provide the git repository ...