01
不常給樹澆水的理由
02
路的旁邊還是路
03
厚道
04
眼見一定是事實嗎?
05
真善無敵
06
真正的富有
07
08
B. 閱讀文章後,登入Gmail,在留言區直接發表心得
01
02
03
04
05
06
07
08
Prefix | Base 1000 | Base 10 | Base 2 | English word | Adoption | ||
---|---|---|---|---|---|---|---|
Name | Symbol | Short scale | Long scale | ||||
yotta | Y | 10008 | 1024 |
280
| septillion | quadrillion | 1991 |
zetta | Z | 10007 | 1021 |
270
| sextillion | trilliard | 1991 |
exa | E | 10006 | 1018 |
260
| quintillion | trillion | 1975 |
peta | P | 10005 | 1015 | 250 | quadrillion | billiard | 1975 |
tera | T | 10004 | 1012 | 240 | trillion | billion | 1960 |
giga | G | 10003 | 109 | 230 | billion | milliard | 1960 |
mega | M | 10002 | 106 |
220
| million | 1873 | |
kilo | K | 10001 | 103 |
210
| thousand | 1795 | |
10000 | 100 | 1 | one | – | |||
milli | m | 1000−1 | 10−3 |
2-10
| thousandth | 1795 | |
micro | µ | 1000−2 | 10−6 |
2-20
| millionth | 1873 | |
nano | n | 1000−3 | 10−9 |
2-30
| billionth | milliardth | 1960 |
pico | p | 1000−4 | 10−12 |
2-40
| trillionth | billionth | 1960 |
femto | f | 1000−5 | 10−15 |
2-50
| quadrillionth | billiardth | 1964 |
atto | a | 1000−6 | 10−18 |
2-60
| quintillionth | trillionth | 1964 |
zepto | z | 1000−7 | 10−21 |
2-70
| sextillionth | trilliardth | 1991 |
yocto | y | 1000−8 | 10−24 | 2-80 | septillionth | quadrillionth | 1991 |
var e = '123';
e = Number(e); // 123
var e = '123.45abc';
var e1 = parseInt(e, 10); // 123
var e2 = parseFloat(e); // 123.45
var f = 'abc123';
var f1 = Number(f); // NaN
var f2 = parseInt(f, 10); // NaN
var f3 = parseFloat(f); // NaN
數值轉字串
var a=10;
a = String(a);
alert(typeof a);
var a=10;
a = a.toString();
alert (typeof a);
$(document).ready(fn)與$(window).load(fn)
Property | Description |
---|---|
hash | Sets or returns the anchor part (#) of a URL |
host | Sets or returns the hostname and port number of a URL |
hostname | Sets or returns the hostname of a URL |
href | Sets or returns the entire URL |
origin | Returns the protocol, hostname and port number of a URL |
pathname | Sets or returns the path name of a URL |
port | Sets or returns the port number of a URL |
protocol | Sets or returns the protocol of a URL |
search | Sets or returns the querystring part of a URL |
Method | Description |
---|---|
assign() | Loads a new document |
reload() | Reloads the current document |
replace() | Replaces the current document with a new one |
Property | Description |
---|---|
availHeight | Returns the height of the screen (excluding the Windows Taskbar) |
availWidth | Returns the width of the screen (excluding the Windows Taskbar) |
colorDepth | Returns the bit depth of the color palette for displaying images |
height | Returns the total height of the screen |
pixelDepth | Returns the color resolution (in bits per pixel) of the screen |
width | Returns the total width of the screen |
Property | Description |
---|---|
appCodeName | Returns the code name of the browser |
appName | Returns the name of the browser |
appVersion | Returns the version information of the browser |
cookieEnabled | Determines whether cookies are enabled in the browser |
geolocation | Returns a Geolocation object that can be used to locate the user's position |
language | Returns the language of the browser |
onLine | Determines whether the browser is online |
platform | Returns for which platform the browser is compiled |
product | Returns the engine name of the browser |
userAgent | Returns the user-agent header sent by the browser to the server |
Property | Description |
---|---|
closed | Returns a Boolean value indicating whether a window has been closed or not |
defaultStatus | Sets or returns the default text in the statusbar of a window |
document | Returns the Document object for the window (See Document object) |
frameElement | Returns the <iframe> element in which the current window is inserted |
frames | Returns all <iframe> elements in the current window |
history | Returns the History object for the window (See History object) |
innerHeight | Returns the inner height of a window's content area |
innerWidth | Returns the inner width of a window's content area |
length | Returns the number of <iframe> elements in the current window |
localStorage | Allows to save key/value pairs in a web browser. Stores the data with no expiration date |
location | Returns the Location object for the window (See Location object) |
name | Sets or returns the name of a window |
navigator | Returns the Navigator object for the window (See Navigator object) |
opener | Returns a reference to the window that created the window |
outerHeight | Returns the outer height of a window, including toolbars/scrollbars |
outerWidth | Returns the outer width of a window, including toolbars/scrollbars |
pageXOffset | Returns the pixels the current document has been scrolled (horizontally) from the upper left corner of the window |
pageYOffset | Returns the pixels the current document has been scrolled (vertically) from the upper left corner of the window |
parent | Returns the parent window of the current window |
screen | Returns the Screen object for the window (See Screen object) |
screenLeft | Returns the horizontal coordinate of the window relative to the screen |
screenTop | Returns the vertical coordinate of the window relative to the screen |
screenX | Returns the horizontal coordinate of the window relative to the screen |
screenY | Returns the vertical coordinate of the window relative to the screen |
sessionStorage | Allows to save key/value pairs in a web browser. Stores the data for one session |
scrollX | An alias of pageXOffset |
scrollY | An alias of pageYOffset |
self | Returns the current window |
status | Sets or returns the text in the statusbar of a window |
top | Returns the topmost browser window |
Method | Description |
---|---|
alert() | Displays an alert box with a message and an OK button |
atob() | Decodes a base-64 encoded string |
blur() | Removes focus from the current window |
btoa() | Encodes a string in base-64 |
clearInterval() | Clears a timer set with setInterval() |
clearTimeout() | Clears a timer set with setTimeout() |
close() | Closes the current window |
confirm() | Displays a dialog box with a message and an OK and a Cancel button |
focus() | Sets focus to the current window |
getComputedStyle() | Gets the current computed CSS styles applied to an element |
getSelection() | Returns a Selection object representing the range of text selected by the user |
matchMedia() | Returns a MediaQueryList object representing the specified CSS media query string |
moveBy() | Moves a window relative to its current position |
moveTo() | Moves a window to the specified position |
open() | Opens a new browser window |
print() | Prints the content of the current window |
prompt() | Displays a dialog box that prompts the visitor for input |
resizeBy() | Resizes the window by the specified pixels |
resizeTo() | Resizes the window to the specified width and height |
scroll() | Deprecated. This method has been replaced by the scrollTo() method. |
scrollBy() | Scrolls the document by the specified number of pixels |
scrollTo() | Scrolls the document to the specified coordinates |
setInterval() | Calls a function or evaluates an expression at specified intervals (in milliseconds) |
setTimeout() | Calls a function or evaluates an expression after a specified number of milliseconds |
stop() | Stops the window from loading |