Commit 1c36c573 authored by JingChao's avatar JingChao

Updates angular/hlsUtil.md

Auto commit by GitBook Editor
parent 16188eea
......@@ -92,6 +92,17 @@ function isEmailAddress(){
```
##### 8.图片转成base64 `getImageToBase64`
- 参数为`( 图片地址,回调函数 )`
- 在回电函数中`( 返回图片的base64 )`
- 调用实例如下
```javascript
vm.imageTo64 = function () {
hlsUtil.getImageToBase64('build/img/login/icon.png', function (imgdata) {
alert(imgdata);
});
}
````
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment