In the following code will get the image or any types of files from input type="file" html tag and convert the selected file into 64bit data url. The data url can use directly in the browser address bar.
Note:
The speed vary depending on the selected file size.
toExponential() in javascript The toExponential() method returns a string representing the Number object in exponential notation.ParametersfractionDigits …Read More
toFixed() in javascript The toFixed() method formats a number using fixed-point notation.digitsOptional. The number of digits to appear after the decimal …Read More
toPrecision() in javascript The toPrecision() method returns a string representing the Number object to the specified precision. A string r…Read More
parseInt() in javascript The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral s…Read More
parseFloat() in javascript The parseFloat() function parses a string argument and returns a floating point number. parseFloat is a top-level function and is …Read More
0 nhận xét:
Đăng nhận xét