小编Joh*_*ohn的帖子

jquery输入隐藏值没有得到

我得到的是alert(grp)的未定义值;不知道出了什么问题.

下面实际上有两种形式,每种形式都有输入隐藏标签.因此,只要我单击"删除"按钮,我就会尝试检索该表单的输入隐藏值.

以下是代码:

<script type="text/javascript" language="javascript" class="init">
  $(document).ready(function () {
    var uids = [];

    $('table[id^="example"]').each(function () {
      var tableId = '#' + this.id;

      $(tableId + ' tfoot th').each(function () {
        var title = $(tableId + ' thead th').eq($(this).index()).text();
        $(this).html('<input type="text" placeholder="Search ' + title + '" />');
      });

      // DataTable
      var table = $(tableId).DataTable({
        "paging": true
      });

      // Apply the search
      table.columns().every(function () {
        var that = this;

        $('input', this.footer()).on('keyup change', function () {
          that
              .search(this.value)
              .draw();
        });
      });

      $(this).on('click', …
Run Code Online (Sandbox Code Playgroud)

javascript jquery

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

数组在php中没有得到正确的输出

这几天学习php.首先抱歉,如果它是一个愚蠢的查询.

<?php

$cfg['x']['y']['z'] = "TRUE"; 
$cfg['x']['y'] = "FALSE";

print_r($cfg['x']['y']['z']); //what to change here to get required output

?>
Run Code Online (Sandbox Code Playgroud)

输出: F

但我的预期输出是真的

我应该改变什么?

php

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

标签 统计

javascript ×1

jquery ×1

php ×1