小编Yog*_*har的帖子

$('#id')和jQuery('#id')之间的区别

可能重复:
jQuery:$.与jQuery

我对这两种类型的jquery感到困惑$('#id') and jQuery('#id').

我有一个表单,在这种形式中,我已经包含了很多不同功能的jquery文件.一切都按预期工作.现在我想为横幅浮动添加一个jquery,并且我已经将所有设置配置为显示.

当我加载页面时它在控制台中显示以下这些行

TypeError: $(".side-ads").scrollToFixed is not a function

TypeError: jQuery(".auth").autocomplete is not a function

所以我在这种冲突之间感到困惑.有什么方法可以消除这种冲突吗?

html jquery

1
推荐指数
1
解决办法
558
查看次数

使用 Titanium 创建的 Android 应用程序数据存储在 Mac 中的位置

我正在使用Titanium框架在 Mac OSX 中创建 Android 应用程序。我正在搜索使用 Titanium 创建的 Android 应用程序的位置。

我们可以看到我们的iPadiPhone基于iOS version. 它的位置是其 iOS 版本文件夹。但我无法找到 Android 应用程序的位置。

我已经用谷歌搜索过但没有帮助。

谢谢。

android location android-emulator titanium-mobile

1
推荐指数
1
解决办法
4528
查看次数

删除最后一个下划线之前的所有字符串

我尝试在下划线破折号之后获取姓氏

$x = "John_Chio_Guy";
Run Code Online (Sandbox Code Playgroud)

输出应该是:Guy

这是我当前的代码:

$x = "John_Chio_Guy";
$x = preg_replace("/^[^_]*_\s*/", "", $x);
echo $x;
//output : Chio_Guy
Run Code Online (Sandbox Code Playgroud)

php preg-replace

1
推荐指数
1
解决办法
2142
查看次数

用其他东西替换(ss)

我在PHP中遇到问题,在字符串中替换(ss).

$string = 'I want a new (ss) now!';
$newString = preg_replace('\(ss\)', 'car', $string);
Run Code Online (Sandbox Code Playgroud)

我期待$ newString成为:

我现在想要一辆新车!

我在这做错了什么?

php regex preg-replace

0
推荐指数
1
解决办法
66
查看次数

PHP将一个数组转换为不同的格式化数组

我的查询

$sql ="select tTrack from tblcourse where tCourseCode = 'AZURE'";
$rs = mysql_query($sql);
$row_rs_course_category = mysql_fetch_assoc($rs);
Run Code Online (Sandbox Code Playgroud)

给了我价值 Array ( [tTrack] => MS,CLOUD )

但我需要将这个数组从PHP转换为这种格式

Array ( [0] => MS [1] => CLOUD )
Run Code Online (Sandbox Code Playgroud)

我怎么在PHP中做到这一点

php mysql

0
推荐指数
1
解决办法
83
查看次数

用php通过电子邮件发送表格数据

我已经完成了以前的问题,没有找到答案.

我想简单地从我的表单发送信息通过电子邮件发送给我.我的表格代码.

<form action="http://bikesnwines.com/html_form_send.php" method="post" name="form1">        <strong>Your Details:</strong>Full name:
<input type="text" maxlength="50" name="fullname" size="30" />
E-mail Address:
<input type="text" maxlength="50" name="email_from" size="30" />Date of Visit:
<input type="text" maxlength="50" name="date" size="30" />
<strong>Accomodation:</strong>

<a href="http://www.bikesnwines.com/wp-content/uploads/2013/07/val-du-charron-    12+-1.jpg"><img class="size-medium wp-image-1382 alignnone" alt="val-du-charron-12+ (1)"     src="http://www.bikesnwines.com/wp-content/uploads/2013/07/val-du-charron-12+-1-    300x125.jpg" width="400" height="170" /></a>
<p style="text-align: left;"><strong><a title="Val Du Charron"     href="http://vdcwines.com/" target="_blank">Val Du Charron Wine Estate</a></strong></p>
<p style="text-align: left;"><strong>Length of Stay:</strong>1 Night Stay only<strong></strong></p>
<p style="text-align: left;"><strong>Optional Extra's:</strong></p>
<p style="text-align: left;"><input type="checkbox" name="extra1" value="MTB"     />Mountain Biking Tours<input type="checkbox" name="extra1" …
Run Code Online (Sandbox Code Playgroud)

php

0
推荐指数
1
解决办法
77
查看次数

将数组分隔成列,并在数据库中输入这两个

我想将一个数组分成两个不同的列.并将这两个分隔列的条目作为2列表格作为(ID,Name)对于特定ID,我有多个名称.

  ($output)
  (
    [0] => 109      ABC
    [1] => 110      CDEEE
    [2] => 109      EFGHI
    [3] => 111      PIJFJJF
  )
Run Code Online (Sandbox Code Playgroud)

上面是我的阵列.我如何进入数据库.请帮忙.我到目前为止尝试使用爆炸功能.explode(' ,' , $output) 但我得到的结果不同

php mysql sql

-1
推荐指数
1
解决办法
101
查看次数