Open iPermanent opened 2 years ago
js端使用dsbridge.call(name,params,(v))方式调用,然后在iOS端委托 runJavaScriptTextInputPanelWithPrompt方法里断点,日志里出来的promot以true开头,而不是_dsbridge=开头,导致进不了里面调用原生方法的断点 [37121:2501511] runJavaScriptTextInputPanelWithPrompt: --- true_dsb.dsinit defaultText {"data":{}} 2022-06-13 14:09:32.331967+0800[37121:2501511] runJavaScriptTextInputPanelWithPrompt: --- truegetStatusBarHeight defaultText {"data":{},"_dscbstub":"dscb0"} 2022-06-13 14:09:34.981082+0800[37121:2501511] runJavaScriptTextInputPanelWithPrompt: --- truesetNavStatusBarVisibility defaultText {"data":"1","_dscbstub":"dscb1"}
并且这个_dsdb.dsinit 初始化方法会以alert形式弹出影响用户体验
js端使用dsbridge.call(name,params,(v))方式调用,然后在iOS端委托 runJavaScriptTextInputPanelWithPrompt方法里断点,日志里出来的promot以true开头,而不是_dsbridge=开头,导致进不了里面调用原生方法的断点 [37121:2501511] runJavaScriptTextInputPanelWithPrompt: --- true_dsb.dsinit defaultText {"data":{}} 2022-06-13 14:09:32.331967+0800[37121:2501511] runJavaScriptTextInputPanelWithPrompt: --- truegetStatusBarHeight defaultText {"data":{},"_dscbstub":"dscb0"} 2022-06-13 14:09:34.981082+0800[37121:2501511] runJavaScriptTextInputPanelWithPrompt: --- truesetNavStatusBarVisibility defaultText {"data":"1","_dscbstub":"dscb1"}
并且这个_dsdb.dsinit 初始化方法会以alert形式弹出影响用户体验