中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。
- 安装
| /* | |
| <a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
| */ | |
| (function() { |
| func PathExist(_path string) bool { | |
| _, err := os.Stat(_path) | |
| if err != nil && err.Error() == os.ErrNotExist.Error() { | |
| return false | |
| } | |
| return true | |
| } | |
| // golang新版本的应该 | |
| func PathExist(_path string) bool { |