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

remove unuse log

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