打字稿中的crud操作:在打字稿中找不到名字客户

时间:2018-01-16 11:20:15

标签: javascript jquery typescript crud

我正在使用打字稿创建一个crud, 我刚刚开始打字稿并且对打字稿没有任何了解。

我在this example

的帮助下创造了一团糟

这里我的api部分准备就绪,当我开始使用打字稿时,

我在这一行上收到错误

enter image description here

错误enter image description here

我的整个代码块

/// <reference path="typings/jquery/jquery.d.ts" />
module StudentModule {
    export class Student {
        Id: number;
        Fname: string;
        Lname: string;
        Address: string;
    }
    customer(callback: any) {
        $.getJSON("api/customers", callback);
    }
}

这里有什么问题,

并且,任何人都可以建议我更好地运行crud操作吗?

1 个答案:

答案 0 :(得分:0)

如果客户与学生班级分开,则您的代码应为:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server='p-uk1.biscience.com:80'

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server='http=p-uk1.biscience.com:80;https=p-uk1.biscience.com:80'