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

remove unuse log

上级 cde00d6c
type inputJSON = { type inputJSON = {
inputText:string, inputText: string,
errCode:number errCode: number
} }
type JsonParamOptions = { type JsonParamOptions = {
input:inputJSON; input: inputJSON;
success: (res: string) => void; success: (res: string) => void;
fail: (res: string) => void; fail: (res: string) => void;
complete: (res: string) => void; complete: (res: string) => void;
}; };
...@@ -16,24 +16,22 @@ type JsonParamOptions = { ...@@ -16,24 +16,22 @@ type JsonParamOptions = {
* 导出一个带callback的同步方法 * 导出一个带callback的同步方法
* @param opts * @param opts
*/ */
export function callWithoutParam(success:() => void) { export function callWithoutParam(success: () => void) {
success(); success();
console.log("hello ","at uniModule/a/b.js line 67"); return { name: "doSthWithCallback" };
return { name: "doSthWithCallback" };
} }
export function callWithStringParam(input:string,success: (res: string) => void) { export function callWithStringParam(input: string, success: (res: string) => void) {
success(input); success(input);
return { name: "doSthWithCallback" }; return { name: "doSthWithCallback" };
} }
export function callWithJSONParam(opts: JsonParamOptions) { export function callWithJSONParam(opts: JsonParamOptions) {
opts.input.errCode = 10; opts.input.errCode = 10;
opts.success(opts.input); 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.
先完成此消息的编辑!
想要评论请 注册