mirror of
https://github.com/emn178/js-md5.git
synced 2026-08-12 20:31:43 +08:00
update README.md
This commit is contained in:
@@ -26,7 +26,7 @@ Output
|
|||||||
a7bac2239fcdcb3a067903d8077c4a07
|
a7bac2239fcdcb3a067903d8077c4a07
|
||||||
|
|
||||||
## Run Tests
|
## Run Tests
|
||||||
You can open `tests/index.html` in browser or use node.js to run `node node-test.js` for test.
|
You can open `tests/index.html` in browser or use node.js to run `node tests/node-test.js` for test.
|
||||||
|
|
||||||
## Extensions
|
## Extensions
|
||||||
### jQuery
|
### jQuery
|
||||||
@@ -37,7 +37,7 @@ Code
|
|||||||
jQuery.md5 = md5
|
jQuery.md5 = md5
|
||||||
And then you could use like this:
|
And then you could use like this:
|
||||||
|
|
||||||
$.md5('');
|
$.md5('message');
|
||||||
### Prototype
|
### Prototype
|
||||||
If you prefer prototype style, you can add following code to add a prototype extension.
|
If you prefer prototype style, you can add following code to add a prototype extension.
|
||||||
|
|
||||||
@@ -48,4 +48,4 @@ Code
|
|||||||
};
|
};
|
||||||
And then you could use like this:
|
And then you could use like this:
|
||||||
|
|
||||||
''.md5();
|
'message'.md5();
|
||||||
|
|||||||
Reference in New Issue
Block a user