linux下easypanel版本安装及升级 (集成了kangle web 服务器和mysql,仅支持centos 5和centos 6) 执行下面的命令即可,安装程序将自动安装或者升级。 yum -y install wget;wget http://download.kangleweb.com/easypanel/ep.sh -O ep.sh;sh ep.sh 安装完成后,使用方...
linux下easypanel版本安装及升级 (集成了kangle web 服务器和mysql,仅支持centos 5和centos 6) 执行下面的命令即可,安装程序将自动安装或者升级。 yum -y install wget;wget http://download.kangleweb.com/easypanel/ep.sh -O ep.sh;sh ep.sh 安装完成后,使用方...
第一步 安装inappbrowser 或者 打开方式: 其他使用例子可见:https://www.npmjs.com/package/cordova-plugin-inappbrowser
鸟语: In package.json, i modified mx.ferreyra.callnumber to call-number.Then i install npm, now project is running successful.This is also temporary fix to my app, which you have done.That bug should be rectify only by author. 中文:删除mx.ferreya.callnumber在config.x…
可能是以为项目是拷贝的,所以没有注意住这个问题,在次执行的时候,就说版本号不对,等等。重新执行以下 npm init 就好了。注意,这个会重新创建一个package.json文件,以前的会删掉。做个备份,在按照现在生成的格式覆盖回去,就OK了!
一、去除List中重复的String 或使用Java8的写法: 二、List中对象去重 比如现在有一个 Person类: 重写Person对象的equals()方法和hashCode()方法: 下面对象去重的代码: List 的contains()方法底层实现使用对象的equals方法去比较的,其实重写equals()就好,但重写了equals最好将hashCode也重写了。 可以参见:http://stackoverflow.com/questions/30745048/how-to-remove-duplica…
功能 像C#中DateTime的ToString的格式化输出一样,在js/ts中输出格式化的日期字符串 网上很多正则的,不加分隔符就不行了,和C#的格式也不一样 刚接触js/ts没两月,可能会有问题。 效果实现 /** * 对日期进行格式化, 和C#大致一致 默认yyyy-MM-dd HH:mm:ss * 可不带参数 一个日期参数 或一个格式化参...
博主在用的: window.localStorage.clear(); window.sessionStorage.clear(); 网上查到的: import { ChangeDetectorRef } from '@angular/core'; constructor( public cd: ChangeDetectorRef){} this.cd.detectChanges();
安装插件: import { Camera, Transfer } from 'ionic-native'; TS代码: images_list: any[] = []; //照片集合 /**弹出获取图片样式 是从相机拍摄还是从相册获取 */ getPhoen() { this.invoicePhoto = true; let actionSheet = this.actionSheetCtrl.create({ title: '发票照片', cssClass: 'action-sheets-basic-page'…
Call Number 直接从Cordova / Ionic应用程序拨打号码。 Repo(备用): https://github.com/Rohfosho/CordovaCallNumberPlugin Installation(安装) 1.安装Cordova和Ionic原生插件: ionic cordova plugin add call-number npm install --save @ionic-native/call-number 2.添加插件到app's module Supported platfo…
安装插件: import { Camera, Transfer } from 'ionic-native'; TS代码: uploadFile(element, callbackType?: any, skip?: string) { this.nativeService.showLoading(element.name + '文件正在上传', true); const fileTransfer = new Transfer(); /** * 上传文件时携带参数,这个是可选项。 */ var options: an…