小编Tim*_*ski的帖子

jssor滑块宽度问题

如何调整这个滑块的宽度超级困惑...

我已经尝试编辑你看到它注释掉的jquery:

jQuery(document).ready(function ($) {

        var nestedSliders = [];

        $.each(["sliderh1_container", "sliderh2_container", "sliderh3_container"], function (index, containerId) {
            var nestedSliderOptions = {
                $PauseOnHover: 1,                               //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, default value is 1
                $SlideDuration: 500,                                //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
                $MinDragOffsetToSlide: 20,                          //[Optional] Minimum drag offset to …
Run Code Online (Sandbox Code Playgroud)

javascript css jquery jssor

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

冒号在jquery中意味着什么?它是否像其他声明?

这是一小段代码:

data:  {comment: $('#modal_form #note').val(), patient_ids: ids},
Run Code Online (Sandbox Code Playgroud)

我只想弄清楚它在"patient_ids:ids"之间使用的是什么参考

javascript jquery

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

jQuery ajax()返回json对象但没有正确提醒

为什么我不能使用data [0] .id返回id?

    $(document).ready(function(){   
$.ajax({
  type: 'POST',     
  dataType: "json",
  url: '<?php echo matry::base_to('tests/map_it');?>',
  success: function (data) 
  {
     alert(data[0])
    $('#alerts').html(data);
    data[0].id

  }

  });
});
Run Code Online (Sandbox Code Playgroud)

这是回归的警报.

    {"id":19385,"first":"RLY","last":"MAZI",
    "trainer_address1":"19 NE 13H CRT",
    "trainer_address2":null,"CITY":"MII","STATE":"AL",
    "trainer_zip":"33333","trainer_phone":"(721)222-4444","trainer_fax":null,
    "trainer_cell":"(213)213-  2133","website_trainer_id":115,"trainer_email":"MO@gmail.COM",
"trainer_group":"","inactive":null}
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激.

编辑这是返回json的php:

$mapit = sql::results("Select * from event.ACS.trainer where inactive is null or inactive=0");
foreach ($mapit as $row)
{
    $return[] = json_encode($row, JSON_FORCE_OBJECT);
}
echo json_encode($return);
Run Code Online (Sandbox Code Playgroud)

我必须遍历并编码每一行,否则,ajax函数不会认为返回了json(并且我的数据var为空)

php ajax jquery json

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

标签 统计

jquery ×3

javascript ×2

ajax ×1

css ×1

json ×1

jssor ×1

php ×1