原创 angularjs ng-click無效的可能原因
在uigrid裏面使用celltemplate嵌入的按鈕,使用ng-click點擊不能打開新頁面,需要增加grid.appScope.具體的函數名切換scope纔可以 錯誤例子: cellTemplate
原创 ProjectEuler-Problem 16-Power digit sum
# @Time : 2017/6/17 23:31 # @Author : wanyang # @Mail :[email protected] # @Question:Power digit sum ht
原创 ProjectEuler-Problem 12-Highly divisible triangular number
# @Time : 2017/5/20 20:39 # @Author : wanyang # @Mail :[email protected] # @Question:H
原创 ProjectEuler-Problem10-Summation of primes
# @Time : 2017/7/6 20:54 # @Author : wanyang # @Mail :[email protected] # @Git :https://github.com/
原创 ProjectEuler-Problem 7-10001st prime
# @Time : 2017/6/24 15:40 # @Author : wanyang # @Mail :[email protected] # @Question:https://projecteul
原创 ProjectEuler-Problem 3-Largest prime factor
# @Time : 2017/6/18 10:03 # @Author : wanyang # @Mail :[email protected] # @Question:Largest prime fact
原创 2017-05-12 idea如何改變文件爲Test類文件
Idea標記自己的文件夾或者文件爲test,方便編寫junit test,如下圖操作: 1.選中File->project structure 2.打開如下對話框,選中需要標記的文件夾或者文件,再選中Marked as Tests即可將
原创 ProjectEuler-Problem20-Factorial digit sum
# @Time : 2017/7/11 20:26 # @Author : wanyang # @Mail :[email protected] # @Git :https://github.com
原创 ProjectEuler-Problem22-Names scores
# @Time : 2017/7/14 21:31 # @Author : wanyang # @Mail :[email protected] # @Git :https://github.com
原创 2017-05-08 angularjs的select選項去除空白行
angularjs使用select按鈕會多出一個空白行,影響用戶體驗: 解決方法:增加ng-init即可,如下: <select ng-model = "testmodel" ng-init="testmodel=1"> <optio
原创 每天一點小知識記錄
2017-05-02 <![CDATA[and t.ISSUED_TIME <= #{endTime}]]> mybatis的mapper文件裏涉及到大![於等於或者小於等於號時,可以用<![CDATA[內容]]> 2017-05-03
原创 angularjs的uigrid中celltemplate如何顯示scope裏的內容
angularjs的uigrid中celltemplate嵌入內容時,需要使用controller中scope裏面聲明的變量(例如$scope.value),不能直接引用(例如value)或者使用$scope.value,因爲uigrid
原创 Eclipse+git中merge代碼時出現conflict(衝突)的問題解決方案
多人合作開發一個項目時,Eclipse中使用git pull更新代碼時經常會出現conflict(衝突)的問題,主要是由於多人操作同一個文件導致的。 使用git也沒多久,今天終於摸索出一套方法可以解決該問題,主要操作步驟如下: 1.需要提
原创 2017-05-10 idea的git提交push出現missing changeid的問題
Idea中使用commit提交後,push失敗,會報錯: ERROR: missing Change-Id in commit 解決方法:需要進入目錄打開git bash,輸入(注意需要在commit之前進行,可以先git reset -
原创 2017-05-05 angularjs的ng-switch-when用法
ng-switch 指令根據表達式顯示或隱藏對應的部分。 對應的子元素使用 ng-switch-when 指令,如果匹配選中選擇顯示,其他爲匹配的則移除。 你可以通過使用 ng-switch-default 指令設置默認選項,如果都