我一直在寻找文档,似乎无法找到一种方法在jQuery mobile中制作可滚动的水平导航栏有没有人完成这个呢?
这是迄今为止我对导航栏的用处
<div data-role="header" data-scroll="x">
<ul>
<li class="logo"><a href="#"><img src="img/iphoneheader.gif" alt="Penn State Live" /></a></li>
<li id="link"><a href="#type=colleges">Colleges</a></li>
<li><a href="#">Campuses</a></li>
<li><a href="#">Faculty and Staff</a></li>
<li><a href="#">Of Interest</a></li>
<li><a href="#">Photos</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Newswire Subscription</a></li>
<li><a href="#">PSUTXT</a></li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud) 我正在尝试从终端窗口以交互模式运行PHP,当我运行命令时
php -a
Run Code Online (Sandbox Code Playgroud)
它说"已启用交互模式",但没有向我显示应该提供的"php->"提示.我必须按控制z才能退出交互模式,但我可以在交互模式"启用"时执行任何命令
有谁知道如何解决这一问题
我想为我正在使用AppleScript工作的项目创建QR代码,生成的qr将被放置在indesign文档中.我发现有一个indesign插件,但我怀疑需要用户交互.
所以我一直在寻找如何使用shell命令生成qr.我发现了与php和rails甚至coldfusion相关的东西,但这些都不适合这个.我需要使用shell命令生成它们所以image事件或perl基本上我可以从mac os附带的命令行运行
谢谢你的帮助.
antotheer
我想知道我是否可以使用curl或somthing来调用url来获取一个?
好吧,所以我有一个专用的Linux服务器,我正在尝试安装node.js
我跑了
wget http://nodejs.org/dist/node-v0.4.11.tar.gz
tar zxf node-v0.4.11.tar.gz
cd node-v0.4.11
Run Code Online (Sandbox Code Playgroud)
一切都很好
然后我跑了
./configure
Run Code Online (Sandbox Code Playgroud)
我得到了
Checking for program g++ or c++ : not found
Checking for program icpc : not found
Checking for program c++ : not found
wscript:232: error: could not configure a cxx compiler!
Run Code Online (Sandbox Code Playgroud)
所以如果找到一个说运行这个的页面我谷歌那个错误
sudo apt-get install build-essential libssl-dev curl git-core
Run Code Online (Sandbox Code Playgroud)
但后来我明白了
-bash: sudo: command not found
Run Code Online (Sandbox Code Playgroud)
请帮帮我,我现在不知道该怎么办
这是伪代码
var index_of_myid = $('.selection').indexOf($('#myid));
Run Code Online (Sandbox Code Playgroud)
如果你能理解我正在做什么,不确定这是否正确
编辑
<div>
<div class="selector"></div>
</div>
<div>
<div class="selector"></div>
</div>
<div>
<div class="selector" id="myid"></div>
</div>
<div>
<div class="selector" id="myid2"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
我只需要知道什么号码选择器是myid
我的部分中有大量的jQuery模板占用空间<head>("text/x-jquery-tmpl").我想将这些标签移动到外部文件.我希望我可以做类似的事情,<link href="/templates.html" type="section"/>但我意识到这不是什么链接的意思,事实上它似乎没有用.
这样做的最佳方法是什么?我可以查看一个加载器(可能很难找到一个html加载器),但这感觉有点矫枉过正.可能只是因为我没有其他选择,只能在我的页面中包含标签.
我试图使用++运算符增加一个变量,但我不断得到NaN结果,我不知道为什么.这是我的代码:
var wordCounts = { };
var x = 0
var compare = "groove is in the heart";
var words = compare.split(/\b/);
for(var i = 1; i < words.length; i++){
if(words[i].length > 2){
wordCounts["_" + words[i]]++;
}
}
alert(wordCounts.toSource());
Run Code Online (Sandbox Code Playgroud) 好的,所以我知道我可以通过运行此代码来模拟点击
document.getElementById('recover').click();
Run Code Online (Sandbox Code Playgroud)
我能找到的最接近的是cntextmenu所以我试过了
document.getElementById('recover').contextmenu();
Run Code Online (Sandbox Code Playgroud)
但这没有任何作用
是否可以右键单击和元素以显示上下文菜单,以便我可以单击该列表中的项目?如果是这样,有人能指出我正确的方向来实现这样的目标吗?
我做了一些搜索,但我发现的唯一的事情是jquery javascript捕获事件并没有实际触发事件
我试图保持一切垂直对齐,但似乎无法搞清楚
这是css
fieldset span{
padding:50px 10px 0px 10px;
float:left;
clear:none;
}
fieldset span.buttons{
float:right;
}
Run Code Online (Sandbox Code Playgroud)
和HTML标记
<fieldset class="remove">
<span class="itemtype">story</span>
<span class="itemtype">53547</span>
<span class="title">New online education program aimed at curbing dangerous drinking</span>
<span class="buttons">
<a href="#" target="blank"><img src="img/edit.png" alt="edit story" />Edit</a>
<a href="#7" target="blank"><img src="http://www.bibliomania.com/graphics/read.gif" alt="read story" />Read</a>
</span>
<input type="hidden" name="featured[items][53547]" value="story" />
</fieldset>
Run Code Online (Sandbox Code Playgroud)
和小提琴 ,你可以看到图像向下推也是在"A"标记文本的文本需求,以及加以纠正
编辑
使用背景图像会很好,但这会使图像在文本下看到新的小提琴
javascript ×2
terminal ×2
applescript ×1
css ×1
html ×1
image-events ×1
increment ×1
jquery ×1
link-tag ×1
linux ×1
loading ×1
macos ×1
magento ×1
nan ×1
navbar ×1
node.js ×1
perl ×1
php ×1
right-click ×1
scrollview ×1
shell ×1