From 8ddfd9aee1406cc2cbe0b3962cc5b7301c7280f8 Mon Sep 17 00:00:00 2001
From: wangtengyu <wangtengyu>
Date: Wed, 07 Nov 2018 10:20:46 +0800
Subject: [PATCH] 对比pc版控件 by kill

---
 src/pages/tabs/home/home.ts |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/pages/tabs/home/home.ts b/src/pages/tabs/home/home.ts
index 4c91e16..a5af2da 100644
--- a/src/pages/tabs/home/home.ts
+++ b/src/pages/tabs/home/home.ts
@@ -1,5 +1,6 @@
 import { Component } from '@angular/core';
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
+declare function eval(s: string): any;
 
 @IonicPage({
   name: 'home'
@@ -13,6 +14,11 @@
   constructor(public navCtrl: NavController, public navParams: NavParams) {
   }
 
+  test() {
+    let fun = "() => console.log('test');";
+    eval(fun);
+  }
+
   ionViewDidLoad() {
     console.log('ionViewDidLoad HomePage');
   }
@@ -20,4 +26,9 @@
   go() {
     this.navCtrl.push('access-login');
   }
+
+  gotoInput() {
+    this.navCtrl.push('access-input');
+  }
+
 }

--
Gitblit v1.8.0