小编son*_*eze的帖子

使用jQuery隐藏某些表格单元格

我是jQuery的新手,如果我单击一行,我想隐藏所选行的某些单元格,如果再次单击则显示回来.我到处寻找但找不到任何解决方案.大部分隐藏完整的行.这是示例表:

$('.selectme').click(function() {
  $(this).has('td.hidene').hide();
});
Run Code Online (Sandbox Code Playgroud)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table id='table1' border="1">
  <tr class='selectme'>
      <td class='donthide'>row 1, cell 1</td>
      <td class='hideme'>row 1, cell 2</td>
      <td class='hideme'>row 1, cell 3</td>
      <td class='hideme'>row 1, cell 4</td>
  </tr>
  <tr class='donthideme'>
      <td class='dontletmehide'>row 2, cell 1</td>
      <td class='dontletmehide'>row 2, cell 2</td>
  </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

html javascript jquery

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

使用php将pdf转换为word文档

我正在尝试使用无法在php中使用Libreoffice将pdf转换为doc。

path/to/soffice --infilter="writer_pdf_import" --convert-to doc file.pdf /path/to/test.docx
Run Code Online (Sandbox Code Playgroud)

PS:还有其他更好的解决方案可以解析pdf并提取图像,而不仅仅是文本,然后将其转换为doc表示形式。

php pdf ms-word doc libreoffice

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

标签 统计

doc ×1

html ×1

javascript ×1

jquery ×1

libreoffice ×1

ms-word ×1

pdf ×1

php ×1