承上一篇
 
[Javascript] JS匯出html的table表格(續)-圖片匯出問題
 

dizzy03 發表在 痞客邦 留言(0) 人氣()

JS匯出HTML TABLE表格,其中圖片目前看起來只能加入img tag而不是把圖片直接存到excel裡面
用excel開啟時電腦必須要能上網,才能讀到圖。
 
嘗試過的方法,把圖片轉為base64置換img src

dizzy03 發表在 痞客邦 留言(0) 人氣()

因為dataTable內建的export成檔案只包含文字的部分,如果要塞入圖片就無法了!!
搜尋一下還是使用原生js code的方式執行,不要再用另外一個套件了。
 
以下為方法:

dizzy03 發表在 痞客邦 留言(0) 人氣()

官方範例在匯出CSV時,預設是 UTF-8 without BOM,
導致部分電腦開啟時會產生亂碼
需要改設定值 bom : true 才能解決

官方Docoument連結 : https://datatables.net/reference/button/csv


範例:

$('.js-exportable').DataTable({
        dom: 'Bfrtip',
        responsive: true,
        buttons: [
         'copy', {
                extend: 'csv',
                text: 'CSV',
                bom : true

dizzy03 發表在 痞客邦 留言(0) 人氣()

特定欄(列的話改為rows)
exportOptions: {
      columns: [ 2, 3 ]
}

dizzy03 發表在 痞客邦 留言(0) 人氣()


$r = $client->request('PUT', 'http://httpbin.org/put', [
'json' => ['foo' => 'bar']
]);

dizzy03 發表在 痞客邦 留言(0) 人氣()

類似diff的功能
上方工具列=>外掛=>Plugin Admin=>找到"Compare"=>打勾選擇安裝即可
安裝好後=>上方工具列=>外掛=>選擇Compare即可
--

dizzy03 發表在 痞客邦 留言(0) 人氣()

非常好用的php讀寫各種報表檔案的plug-in
https://phpspreadsheet.readthedocs.io/en/latest/topics/reading-and-writing-to-file/
 

dizzy03 發表在 痞客邦 留言(0) 人氣()

https://www.microsoft.com/zh-tw/p/my-mp4-to-mp3-audio-converter/9ng4dw2fd04f
簡易的MP4轉MP3應用程式
 

dizzy03 發表在 痞客邦 留言(0) 人氣()

 $table->timestamps(); 代表加入 created_atupdated_at 欄位

dizzy03 發表在 痞客邦 留言(0) 人氣()


轉自 http://blog.tonycube.com/2016/12/composer-php.html
--
 

dizzy03 發表在 痞客邦 留言(0) 人氣()

I'm just trying to deploy my application and I just ran composer update on my server and I got the following error:
In PackageManifest.php line 122: Undefined index: name
How can I fix this issue?
 

dizzy03 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。