ng

有关OCS监控软件安装在windows上, 服务端显示乱码的问题

独自空忆成欢 提交于 2019-12-10 14:51:22
OCS监控软件服务端目前安装在windows服务器上,但windows操作系统的默认字符集是是cp936,即gbk,可以通过chcp命令查看 导致OCS自带的MYSQL无法将字体集设置为utf8,最终在OCS服务器显示为乱码 解决方案如下: 1:将OCS监控软件安装到linux服务器上 2:修改OCS监控软件的代码,在连接数据库时指定utf8编码或在创建连接后执行"SET NAMES 'utf8'" 建议按照方案1执行. 来源: oschina 链接: https://my.oschina.net/u/1410765/blog/207797

AngularJs学习笔记--IE Compatibility 兼容老版本IE

家住魔仙堡 提交于 2019-12-09 23:03:37
Short Version (简述)   为了让我们的 angular 应用在 IE 上工作,请确保:   1. 按需引入 JSON.stringify ( IE7 或以下的都需要这玩意)。我们可以使用 JSON2 ( https://github.com/douglascrockford/JSON-js )或者 JSON3 ( http://bestiejs.github.com/json3/ )。   2. 不要使用自定义标签,诸如 <ng:view> (用属性版代替,如 <div ng-view> )。如果还是想使用,则请看第 3 点。   3. 如果你确实想使用自定义标签,那么你必须做以下步骤,让老 IE 认识你的自定义标签。 <html xmlns:ng="http://angularjs.org"> <head> <!--[if lte IE 8]> <script> document.createElement('ng-include'); document.createElement('ng-pluralize'); document.createElement('ng-view'); // Optionally these for CSS document.createElement('ng:include'); document.createElement(

angular路由懒加载

江枫思渺然 提交于 2019-12-06 04:35:36
创建模块的方法 ng generate module 模块名称 --routing 例如: ng generate module admin --routing ng generate module auth --routing 使用懒加载的方法 1、在app.module.ts中调用懒加载 // 懒加载模块 { path:"login", loadChildren:()=>import('./auth/auth.module').then(mod=>mod.AuthModule) }, // 懒加载模块 { path:"admin", loadChildren:()=>import('./admin/admin.module').then(mod=>mod.AdminModule) }, 使用懒加载的原因 便于进行模块管理。 减少页面加载的时间。 来源: https://www.cnblogs.com/MyUniverse/p/11962084.html

newngapi接口api返回状态码

六眼飞鱼酱① 提交于 2019-12-03 20:07:24
ng接口api返回状态码 提醒一点这里ng官方api接口 www.neapi.com有一点没有说明的除了返回的01是正常的其余的返回状态码都是错误的 code * 状态码 字段名称 类型 00 失败 01 成功 02 参数不能为空 03 sign_key异常 10001 code不能为空 10002 code错误 10003 密钥错误 10004 您所提交的用户名已被使用 10007 必填字段不能为空 10008 用户不存在 10009 sign_key错误 10010 注册失败或者用户已注册 10011 平台类型错误 10012 游戏类型错误 10013 额度转换金额错误 10014 平台余额不足 10015 该请求时间内限制次数 10016 用户名5-14位字母加数字 10017 分页每页不能超过限制数量 10018 开始时间不能大于结束时间 10019 查询时间(开始时间-结束时间)不能大于24小时 10020 用户未注册 10021 用户未注册BBIN 10022 用户未注册SA 10023 该平台类型不支持体育 10024 该平台类型不支持捕鱼 10025 请输入6-12位字母加数字组合的密码 10026 转换额度标识不能超过64位 10027 暂时不支持此功能 10028 该平台类型不支持棋牌 10029 时间格式错误 10030 系统升级中 10031

angular-cli where is webpack.config.js file - new 2017-Feb: ng eject

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: UPDATE: February 2017: use ng eject UPDATE: November 2016: angular-cli now only use webpack. You only need install normally with npm install -g angular-cli. "We changed the build system between beta.10 and beta.14, from SystemJS to Webpack.", but actually i use angular-cli just to firs structure and folders and then anymore, i use webpack config manually I've installed angular cli with this: npm install -g angular-cli@webpack When I worked with angular1 and web pack , i used to modify "webpack.config.js" file to execute all the task and

Angular - Connects to Proxy server and gets response but then shows Error occured while trying to proxy to: localhost to actual server

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm new to Angular(2,4). I was trying to connect to proxy server. Added proxy.config.json in project root directory { "/api/*": { "target": "http://<server_ip_address>:<port>", "secure": false, "changeOrigin": true, "logLevel": "debug" } } Then added the proxy config in start in package.json "scripts": { "ng": "ng", "start": "ng serve --proxy-config proxy.config.json", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, Now in component I have a login method to connect to server. import { Component, OnInit } from '

Angular 4: \&quot;Cannot find name &#039;require&#039;

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am building an app with Angular 4 and webpack . I have the following in one of my components: ngOnInit() { require('/assets/js/regular-expresions.js'); } When I attempt to compile, I get: ERROR in C:/SRC/Sandbox/eat-sleep-code.com/src/app/content.component.ts (21,9): Cannot find name 'require'. I have ran npm install @types/node --save-dev and updated my tsconfig.json to look like: { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "baseUrl": "src", "sourceMap": true, "declaration": false, "moduleResolution": "node"

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuterFilter

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I copied all struts2 jars to the WEB-INF/lib folder and the struts.xml file is as shown below: * I'm still getting this exception while running the application. How can I solve this? 回答1: For new release of Struts2 class path changed as like below (Struts 2.5) org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter Package names have changed Some classes were moved to different packages, see the list below for more details: New: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter org.apache.struts2.dispatcher.filter

Metadata version mismatch with Angular 4

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am working on Angular 4 application and getting below error with "npm start" command - here is my package.json file { "name" : "nucleus-web" , "version" : "1.0.0" , "license" : "MIT" , "scripts" : { "transpile" : "ngc" , "package" : "rollup -c" , "minify" : "uglifyjs dist/bundles/datatable.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/datatable.min.js" , "build" : "npm run transpile && npm run package && npm run minify && ng build" , "ng" : "ng" , "start" : "ng serve" , "postinstall" : "ng build" , "test

Angular 2 Material How to update Dialog box Position?

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Below is the simple Angular 2 code that should show dialog box in the middle out of the box. Instead dialog box show at the bottom. I am using "angular-cli": "1.0.0-beta.24" and "@angular/material": "^2.0.0-beta.1" Can anybody help why this is happening? import { Component } from '@angular/core'; import {MdDialog,MdDialogRef,MdDialogConfig} from '@angular/material'; @Component({ selector: 'app-root', template: ` <md-sidenav-container style="width:200px;height:500px;"> <md-sidenav mode="side" opened="true" #sidenav> <md-nav-list> <a md-list