提交 1c4d58e0 编写于 作者: 杜庆泉's avatar 杜庆泉

remove unuse log

上级 cde00d6c
type inputJSON = {
inputText:string,
errCode:number
inputText: string,
errCode: number
}
type JsonParamOptions = {
input:inputJSON;
success: (res: string) => void;
fail: (res: string) => void;
complete: (res: string) => void;
input: inputJSON;
success: (res: string) => void;
fail: (res: string) => void;
complete: (res: string) => void;
};
......@@ -16,24 +16,22 @@ type JsonParamOptions = {
* 导出一个带callback的同步方法
* @param opts
*/
export function callWithoutParam(success:() => void) {
success();
console.log("hello ","at uniModule/a/b.js line 67");
return { name: "doSthWithCallback" };
export function callWithoutParam(success: () => void) {
success();
return { name: "doSthWithCallback" };
}
export function callWithStringParam(input:string,success: (res: string) => void) {
success(input);
return { name: "doSthWithCallback" };
export function callWithStringParam(input: string, success: (res: string) => void) {
success(input);
return { name: "doSthWithCallback" };
}
export function callWithJSONParam(opts: JsonParamOptions) {
opts.input.errCode = 10;
opts.success(opts.input);
return { name: "doSthWithCallback" };
return { name: "doSthWithCallback" };
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册