###### nginx监听多个端口并转发给不同的服务 ### 第一个监听: upstream odoo { server localhost:; } upstream odoochat{ server localhost:; } server { listen default_server; listen [::]: default_server; root /var/www/html; # Add index.php to the list if you are using PHP inde
paladin https://v1.go-kratos.dev/#/config-paladin example Service(在线配置热加载配置) # service.go type Service struct { ac *paladin.Map } func New() *Service { // paladin.Map 通过atomic.Value支持自动热加载 var ac = new(paladin.TOML) if err := paladin.Watch("applicati
1.封装方法: var textareaListener = { /*事件监听器兼容 * *attachEvent——兼容:IE7.IE8:不兼容firefox.chrome.IE9.IE10.IE11.safari.opera *addEventListener——兼容:firefox.chrome.IE.safari.opera:不兼容IE7.IE8 * */ compatibleEvtListener: function () { var observe; if (window.attac