heHehE


  • Home

  • Tags

  • Categories

  • Archives

JS and PHP: $.ajax()的dataType參數

Posted on 2018-06-01 | In Web功能

jQuery ajax() Method裡面的dataType參數的用意為指定伺服器回傳的預期檔案格式(The data type expected of the server response.),倘若知道回傳的檔案格式為JSON格式並且如此設定了:dataType: 'JSON',,jQuery會把回傳的檔案轉為JavaScript物件,好讓你操作;但若你漏掉這一項設定,其實可以在接收到檔案後使用jQuery.parseJSON()強制轉換。

Read more »

JS - 數值欄位加總計算

Posted on 2018-06-01 | In Web功能

效果:
下圖中,Monthly Base Salary + Allowance 會自動帶出 Total 的值,並加上千位分隔符(group seperator、三位一撇)。
(Monthly Base Salary以及Allowance可以輸入帶有千位分隔符或純數字的形式)

Read more »

JS - 日期選擇欄位

Posted on 2018-06-01 | In Web功能

需引入jQuery函式庫,使用的是jQuery的Datepicker部件

Read more »

JS or CSS - 列印頁面

Posted on 2018-06-01 | In Web功能

效果:列印功能。
欲列印的部分都是需要載入之後才可以列印。

Read more »

JS - 傳遞呼叫該函數的物件的方法

Posted on 2018-06-01 | In Web功能

牽涉到原生JavaScript中this的用法。
作為JavaScript語言核心的this的介紹還是看別的地方的,這裡只記錄了用法。

Read more »

CSS - 同一水平但是文字座落於左邊及右邊

Posted on 2018-06-01 | In Web功能

方法:使用 span 標籤並搭配css style => style=”float: left” 以及 style=”float: right”

Read more »

網路基礎知識

Posted on 2018-05-31 | In Web知識

關於網路的基礎知識

因為第一份工作是web backend developer,所以需要補足一些關於網路的基礎知識,這一篇就是當初的筆記。
這些資料都是在網路上找來的,可惜時間久遠,是哪些網站的資料就沒有記下…

Read more »

Hello

Posted on 2018-05-30
Read more »

hohh0115

8 posts
2 categories
6 tags
© 2018 hohh0115
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4