update Chinese README

This commit is contained in:
Zongmin Lei
2016-04-25 18:09:31 +08:00
parent ccc0986e91
commit 15b0dee292

View File

@@ -118,7 +118,13 @@ AMD模式参考文件 `test/test_amd.html`:
```html
<script>
require.config({
baseUrl: './'
baseUrl: './',
paths: {
xss: 'https://raw.github.com/leizongmin/js-xss/master/dist/xss.js'
},
shim: {
xss: {exports: 'filterXSS'}
}
})
require(['xss'], function (xss) {
var html = xss('<script>alert("xss");</scr' + 'ipt>');