- Nov 24 Wed 2021 10:35
-
[PHP][轉] max_input_vars導致PHP Post 變量上限1000的解決方法
- Nov 11 Thu 2021 09:33
-
[PhpspreedSheet] 設定超鏈結 hyperlink 文字樣式(藍色&底線)
PhpspreedSheet建立hyperlink時,他不會像使用excel軟體編輯超連結時自動把文字加上藍色與底線,要自己加上style。
如下
$link_style_array = array(
'font' => array(
'color' => array('rgb' => '0000FF'),
'background-color' => array('rgb' => 'FFFFFF'),
'underline' => 'single'
)
);
$sheet->getStyle("A1")->applyFromArray($link_style_array);
如下
$link_style_array = array(
'font' => array(
'color' => array('rgb' => '0000FF'),
'background-color' => array('rgb' => 'FFFFFF'),
'underline' => 'single'
)
);
$sheet->getStyle("A1")->applyFromArray($link_style_array);
- Nov 10 Wed 2021 16:05
-
[PHP][轉] 如何在php中使用curl下載檔案?
如果頭設定為true,如何使用curl在php中下載檔案?我還可以得到檔名和副檔名嗎?
php程式碼示例:
curl_setopt ($ch, CURLOPT_HEADER, 1);
$fp = fopen($strFilePath, 'w');
curl_setopt($ch, CURLOPT_FILE, $fp);
php程式碼示例:
curl_setopt ($ch, CURLOPT_HEADER, 1);
$fp = fopen($strFilePath, 'w');
curl_setopt($ch, CURLOPT_FILE, $fp);
- Nov 10 Wed 2021 13:54
-
[sweetalert2] SweetAlert2 - Bind another event to cancel button? 取得取消按鈕event
如下粗體的部分
Just add your custom function to catch the rejection, for example:
swal({
title: 'Some title',
text: 'some text for the popup',
type: 'warning',
showCancelButton: true,
cancelButtonText: 'Some text for cancel button'
}).then(function(){
// function when confirm button clicked
}, function(dismiss){
if(dismiss == 'cancel'){
// function when cancel button is clicked
}
});
Just add your custom function to catch the rejection, for example:
swal({
title: 'Some title',
text: 'some text for the popup',
type: 'warning',
showCancelButton: true,
cancelButtonText: 'Some text for cancel button'
}).then(function(){
// function when confirm button clicked
}, function(dismiss){
if(dismiss == 'cancel'){
// function when cancel button is clicked
}
});
- Nov 10 Wed 2021 13:51
-
[PhpspreedSheet] 加入超鏈結 hyperlink
Change a cell into a clickable URL
You can make a cell a clickable URL by setting its hyperlink property:
- Nov 09 Tue 2021 14:00
-
[房產][轉] 買房MEMO

https://www.ptt.cc/bbs/Gossiping/M.1636428621.A.9CE.html
--
作者derekhsu (浪人47之華麗的天下無雙)
看板Gossiping
標題Re: [爆卦] 炒房建商欺負大學老師
時間Tue Nov 9 11:30:11 2021
- Nov 05 Fri 2021 16:41
-
[jQuery] 表格匯出成excel檔 - tableExport.jquery.plugin
網路上找了一圈可以把 HTML table匯出成excel檔的js
最後找到這個 https://github.com/hhurz/tableExport.jquery.plugin
算是還有在維護的
最後找到這個 https://github.com/hhurz/tableExport.jquery.plugin
算是還有在維護的
- Nov 04 Thu 2021 15:06
-
[moment.js] Format datetime to YYYY-MM-DD HH:mm:ss in moment.js
- Nov 04 Thu 2021 11:09
-
[dataTable] dataTable匯出檔案移除title列 removing-title-from-export-buttons
- Nov 04 Thu 2021 10:27
-
[datatable] 匯出excel檔 必須include的js檔案

最近又要用到datatable的內建匯出excel檔功能
JS部分都沒錯但是為何匯出按鈕都沒有出現,找了一圈才發現是少include這個js
https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js
- Nov 02 Tue 2021 16:09
-
[轉] 用管理的角度看買房:人生最痛苦的,不是失敗,而是我本可以 (大人學
- Nov 02 Tue 2021 10:47
-
[轉] 2022行事曆(民國111年行事曆)人事行政局版》連假、國定假日整理

2022行事曆(民國111年行事曆)人事行政局版》連假、國定假日整理
2022連假包含(元旦,春節過年,228紀念日,清明連假,勞動節連假,端午連假,中秋連假,國慶連假...)人事行政局行事曆下載、補班資訊、年假連休攻略搶先看, 一整年的行事、旅遊安排就靠它了!
