原创 javascirpt用享元模式實現日曆

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/java

原创 xml文件的解析

 Jdom解析xml文件 public class AppSax { public static void main( String[] args ) throws Exception { SAXBuilder saxBuilde

原创 javascript中的命令模式

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/java

原创 riot做一個數據分析標籤

<statistics> <div class="n-statistic" each={ opts.items.filter(show) }> <div class="n-statistic-body"> <di

原创 jquery Jcrop+canvas前端實現圖片的上傳,剪切,生成新的圖片

現在問題描述:用jquery jcrop圖片獲取到剪切點後發到後臺用java進行剪切,但是高併發的時候,對於高清圖片內存就卡死了 學習內容: 1.clip學習; 2.監聽鼠標的按下、拖動、鬆開(構成被選區域); 分析現有代碼: 1.

原创 歡迎大家參觀我的githup

https://github.com/caifi2/vue2Demo 裏面包含內容:1.極簡博客開發;2.模擬淘寶電商網站首頁佈局;3.響應式佈局優化博客系統;3.Bootstrap 開發了一個登錄註冊頁面;4.Bootstrap新聞站開

原创 riot自定義todo標籤

爲什麼需要一個新的 UI 庫? 前端世界的庫已經太多了,但坦白說我們認爲終極解決方案仍有待探索。我們相信 Riot 爲解決前端開發的難題提供了正確的方向。React 似乎能夠解決問題,但其自身仍有重大弱點,這些弱點正是 Riot

原创 riot實現spinner標籤

html in spinner.tag <div class="input-group {opts.class} spinner" data-trigger="spinner" name="spinner"> <in

原创 riot實現日曆組件標籤的編寫

app.tag file <app> <div class="container"> <input type="text" class="field" onclick="{ open }" value="{ o

原创 怎麼寫一個jquery插件

創建插件 看來 jQuery 你已經用得很爽了,想學習如何自己編寫插件。非常好,這篇文檔正適合你。用插件和方法來擴展 jQuery 非常強大,把最聰明的功能封裝到插件中可以爲你及團隊節省大量開發時間。 開始 要編寫一個 jQuery 插件

原创 Vue對比其他框架

vuejs吸收了react和angular的優點,強調了react組件化的概念,吸收angular靈活的指令和頁面操作的方法。 Vue推薦一個組件的概念 從*.vue到頁面 *.vue  -->webpack -->(*.html,*.j

原创 riot實現alert標籤

<rg-alerts> <div class="alerts"> <div each="{ opts.alerts }" class="alerts__alert { 'alerts__alert--' + t

原创 riot實現bubble

<app> <div class="context"> <div class="content" onmouseover="{ showBubble }" onmouseout="{ hideBubble }" o

原创 riot實現一個記時組件

思路: 該記時組件有2個屬性,一個title, 一個times時間顯示,times 由 hh:mm:ss 組成, 應該有個定時器,讓ss每秒+1; <timer> <p>{title}{ times }</p>

原创 riot寫一個timeline標籤

riot寫timeline標籤步驟 寫timeline的顯示html;寫javascript,對一些參數進行處理和一些事件進行處理; <div class="timeline-centered timeline-sm">