albert's blog
Showing posts with label
JavaScript
.
Show all posts
Showing posts with label
JavaScript
.
Show all posts
2018/07/13
[JavaScript] How to set an array of data to textarea ?
›
Problem I have a textarea as bellows: <textarea class= 'form-control' id= 'sentencesToLabeledData' name= 's...
2018/07/12
[JavaScript] How to convert textarea into an array?
›
Problem I have a textarea as bellows: <textarea class= 'form-control' id= 'sentencesToLabeledData' name= 's...
2018/06/11
[JavaScript] How to get selected value from a drop-down list that allows multiple selections ?
›
Problem Assume I have a drop-down list that allows multiple selections. 1 2 3 4 5 6 7 <select class= "form-control" ...
2018/05/06
[JavaScript] Utilize window.getSelection to get selected text
›
Problem If I would like to get the selected text from a TextField via JavaScript, how to do it? How-To You can make good use of window....
2018/04/10
[JavaScript] Remove an item from array
›
Scenario Assume I have an array of data in $scope.tab2.sentence.entities I would like to remove an item from array based on the value wh...
2015/11/19
[AngularJS] Round to at most 2 decimal places in ng-grid CellFilter
›
Problem I utilize ng-grid to implement the grid as bellows: The value of 利率 has 4 decimal places, customer ask to change to 2 decimal p...
2014/05/09
java.lang.NullPointerException: Cannot find parameter "json" from request.
›
Problem I found out I fail to execute print functions in every function in my system. And the console throw this exception message...
2014/03/13
Error: ng:areq Bad Argument
›
Problem I have a html page with 2 tabs. As I entered this page, it occurred javascript errors with "Error: ng:areq" and link ...
2014/02/20
常用JavaScript function整理
›
//取得今年民國年 function getCurrentYear(){ var date = new Date(); return date.getFullYear() - 1911; } //取得當下月份 functi...
2012/12/10
XDate - A Modern JavaScript Date Library
›
XDate - a modern java-script date library from Guo Albert
›
Home
View web version