注意:Laravel使用try catch要先use Exception;
否則會出現 Class 'App\Http\Controllers\Exception' not found 的 error msg
--
dizzy03 發表在 痞客邦 留言(0) 人氣(0)
"drawCallback": function( settings ) {
var api = this.api();
var data = api.rows( {page:'current'} ).data();
dizzy03 發表在 痞客邦 留言(0) 人氣(5)
Q:
我正在爲一個站點編寫一個預先編寫的模塊,並且我需要定位一個ID爲test:two的元素。現在,這個元素有一個冒號,所以jquery大概可以理解地把'two'看作一個僞類。有什麼方法可以用jQuery來定位這個元素嗎?jquery選擇一個帶有冒號的ID
此外,更改ID是不可能的。相信我,如果我能的話。
dizzy03 發表在 痞客邦 留言(0) 人氣(0)
第二次遇到這個問題
比較好的解法是在先端先轉成json字串,丟到後端再解析即可,就不用動到這個php設定。
--
dizzy03 發表在 痞客邦 留言(0) 人氣(13)
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);
dizzy03 發表在 痞客邦 留言(0) 人氣(3)
如果頭設定為true,如何使用curl在php中下載檔案?我還可以得到檔名和副檔名嗎?
php程式碼示例:
curl_setopt ($ch, CURLOPT_HEADER, 1);
$fp = fopen($strFilePath, 'w');
curl_setopt($ch, CURLOPT_FILE, $fp);
dizzy03 發表在 痞客邦 留言(0) 人氣(8)
如下粗體的部分
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
}
});
dizzy03 發表在 痞客邦 留言(0) 人氣(2)
Change a cell into a clickable URL
You can make a cell a clickable URL by setting its hyperlink property:
dizzy03 發表在 痞客邦 留言(0) 人氣(0)

https://www.ptt.cc/bbs/Gossiping/M.1636428621.A.9CE.html
--
作者derekhsu (浪人47之華麗的天下無雙)
看板Gossiping
標題Re: [爆卦] 炒房建商欺負大學老師
時間Tue Nov 9 11:30:11 2021
dizzy03 發表在 痞客邦 留言(0) 人氣(0)
網路上找了一圈可以把 HTML table匯出成excel檔的js
最後找到這個 https://github.com/hhurz/tableExport.jquery.plugin
算是還有在維護的
dizzy03 發表在 痞客邦 留言(0) 人氣(6)