- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有以下代码
<div class="event_starpline">
<div style="width:71%;float:left;">
<div id="starpline_timestamp_location"
title="Location : Chennai">Chennai</div>
<div id="starpline_timestamp_posted"
title="Posted Jan 30, 2013"
style="margin-left:10px;">
<acronym title="30 January 2013 @ 8:58am">471 days ago</acronym>
</div>
<div id="starpline_timestamp_refer"
title="Refer your friends"
style="margin-left:10px;">
<a href="#">Refer your friends</a>
</div>
</div>
<div class="starpline_right" style="width:28%;">
<div style="float:left; width:108px; padding-top:5px;">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_20x20_style"
addthis:url="http://10.0.1.22/firstplanet/fpin/dev/pg/ad/read/39342/community-developer-4"
addthis:title="Community developer 4"
addthis:description="Job" description="">
<a class="addthis_button_twitter addthis_button_preferred_2 at300b"
title="Tweet" href="#">
<span class=" at300bs at15nc at15t_twitter">
<span class="at_a11y">Share on twitter</span>
</span>
</a>
<a class="addthis_button_facebook addthis_button_preferred_1 at300b" title="Facebook" href="#">
<span class=" at300bs at15nc at15t_facebook">
<span class="at_a11y">Share on facebook</span>
</span>
</a>
<a class="addthis_button_email addthis_button_preferred_3 at300b"
target="_blank" title="Email" href="#">
<span class=" at300bs at15nc at15t_email">
<span class="at_a11y">Share on email</span>
</span>
</a>
<div class="atclear"></div>
</div>
<script type="text/javascript">
var addthis_config = {
"data_track_addressbar": true
};
</script>
<script type="text/javascript"
src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-510b54196b4318c8"></script>
<div id="_atssh"
style="visibility: hidden; height: 1px; width: 1px; position: absolute; z-index: 100000;">
<iframe id="_atssh679"
title="AddThis utility frame"
src="//ct1.addthis.com/static/r07/sh158.html#iit=1400219038582&tmr=load%3D1400219036211%26core%3D1400219036863%26main%3D1400219038575%26ifr%3D1400219038590&cb=0&cdn=0&chr=UTF-8&kw=open%20source%2Cfirst%20planet%2Cfirstplanet%2Cjob%20seekers%2Cunemployment%2Cfreshers%2Crecruitment%2Ctraining%2Cjobs%2Cinformation%20technology%2CIT%20Job%2Cwalkins%2Csatori%2Clamp%2Cdotnet%2Cjava%2Cchennai%2Canna%20salai%2Ctechnologies&ab=-&dh=10.0.1.22&dr=http%3A%2F%2F10.0.1.22%2Ffirstplanet%2Ffpin%2Fdev%2Fpg%2Fsearch%2F%3Ftag%3Da%26entity_subtype%3Dad%26entity_type%3Dobject%26search_type%3Dentities&du=http%3A%2F%2F10.0.1.22%2Ffirstplanet%2Ffpin%2Fdev%2Fpg%2Fad%2Fall%2F&dt=First%20Planet%3A%20Job%20posts&dbg=0&md=0&cap=tc%3D0%26ab%3D1&inst=1&vcl=1&jsl=1&prod=undefined&lng=en-US&ogt=&pc=men&pub=ra-510b54196b4318c8&ssl=0&sid=5375a59c9ed1ff23&srpl=1&srcs=1&srd=1&srf=1&srx=1&ver=300&xck=0&xtr=0&og=&aa=0&csi=undefined&rev=1399981304&ct=1&xld=1&xd=1&fcu=U3WlnIGSxBl"
style="height: 1px; width: 1px; position: absolute; z-index: 100000; border: 0px; left: 0px; top: 0px;">
</iframe>
</div>
<script type="text/javascript"
src="http://ct1.addthis.com/static/r07/core131.js"></script>
<!-- AddThis Button END -->
我希望当我点击Refer your friends
时它会触发addthis_button_email
addthis_button_preferred_3 at300b
并且它会显示一个弹出窗口。
我试过下面的代码
jQuery("div#starpline_timestamp_refer").click(function(){
// trigger second button
jQuery(".addthis_button_email addthis_button_preferred_3 at300b").click()
return false;
});
好吧,现在看看它是如何触发的。
实际上它是一个元素列表。我只展示了一件商品。所以每次我点击它都会获取最后一项属性。我们可以从列表中正确选择一项吗?我们怎样才能做到这一点?
最佳答案
您缺少类选择器 [dot] 并删除选择器之间的空格:
jQuery(".addthis_button_email.addthis_button_preferred_3.at300b").click()
// here ^^ and here ^^
关于javascript - 单击另一个按钮触发共享按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23693580/
只是想知道是否有可能找出谁从 Windows 共享中读取了文件(最好使用 .NET,但 win32 native 可以)? 我想做的是创建类似 awstats 的东西对于 Windows 共享,这样我
是否可以列出 Intent.ACTION_SEND ?我的意思是我需要知道是否有人通过 action_send 在 Facebook 上分享或在 Twitter 上发推文。 最佳答案 也许你想要一个更
我正在使用 Google Apps 应用程序。实际上,我想在不使用密码的情况下访问另一个 ID。我使用了 OAuth,它运行良好。但我无法分享特定人的日历。我尝试了以下代码。 GoogleOAuthP
我怎样才能只创建模拟器...可能吗?我知道,设备需要分发证书。 最佳答案 您只需将应用程序目录从 iPhone 模拟器复制到另一个实例/操作系统版本,它就应该可以工作。 因此,如果您想分发 3.1.3
我想使用多阶段构建来避免每次构建应用程序时都下载我的 Java 项目所需的所有 Maven 依赖项。 我正在考虑在第一阶段解决 Maven 依赖项,然后在第二阶段构建应用程序,这将需要访问在前一阶段下
我正在寻找保护用户下载内容的初步想法。用户下载充满有趣资源的 zip 文件,这些资源被提取到本地文件系统中以供应用程序使用。我的目标是防止用户通过互联网将下载的资源共享给其他用户(假设他们获得了对文件
我想知道在具有移动和桌面版本的网站上共享身份验证、 session 管理等的最佳方法是什么。我们正在运行 Tomcat,并且更愿意将移动站点和桌面站点的应用程序保持在不同的节点上。 我看过类似的帖子,
我发现了这个单例的实现。我怎样才能创建指向它的指针或共享指针?` 为什么这不起作用?自动测试 = Singleton::Instance(); class Singleton { public: st
我有一个 heroku 项目,我想与其他人分享。作为the instructions describe ,我使用 virtualenv 来管理环境和依赖项。有没有办法在新机器上从 requiremen
Maven 将所有 jar 存储在本地存储库 ~/.m2/repository/ 下。用户多时占用空间大。 那么,是否可以由多个用户共享这个本地存储库,或许在不同的目录结构下? 最佳答案 简单的回答
为什么共享 worker 在重新加载页面时死了?应该是复活了我该如何解决这个问题? 重装前 重新加载后(在example.com上按F5) parent worker var port = new S
我正在开发多个小型应用程序,这些应用程序将共享通用和共享模块和 Assets 。 关于如何创建项目结构的部分在这里回答:https://stackoverflow.com/a/61254557/135
我在 RHEL 上安装了 jenkins (localhost:8080),我能够成功地构建代码 现在,我想设置主/从代理。 我的笔记本电脑将充当“Master Jenkins”,而我同事的笔记本电脑
我有这种方法可以根据我使用的 EXTRA_STREAM 共享文本文件或图片。我有这两个我可以选择 i.putExtra(Intent.EXTRA_STREAM, uri); i.putExtra(In
我正在使用 R 中的一个数据分析项目,我正在使用 R 中的敏感私有(private)数据进行一些逻辑和多级建模。我爱上了 。预订 包,我已经创建了一本关于我们的工作流程和分析管道的相当广泛的书。问题是
我正在构建的应用程序需要在 UITabBarController 框架内为多个 View (及其 subview )显示共享的自定义 UIToolbar。自定义工具栏的内容在所有 View 中都是相同
我有多个应用程序,我想共享相同的 eslint 配置: - project_root/ - app1/ - node_modules/ - eslint.rc
我有多个 Electron 应用程序。一个是主应用程序,其他几个功能应用程序。主应用程序上的按钮很少,这将导致功能应用程序打开。这里的问题是每个应用程序都有一个主进程,该进程导致要利用更多的CPU。是
我正在开发一个 Node.js 后端,它通过 websocket 与一些桌面客户端进行通信,而服务器端的通信是从 Web 前端发起的。一切正常,因为我将 SockJS Connection 实例存储在
我对托管多个网站的服务器上的多个用户帐户使用私有(private) SSH key 和无密码条目。 我为每个用户帐户使用相同的私钥。 (因为我很懒?或者那是“正确”的方式)。 我现在想授权该国不同地区
我是一名优秀的程序员,十分优秀!