【发布时间】:2018-08-17 12:45:13
【问题描述】:
webView.LoadUrl(string.Format("file:///android_asset/pdfjs/web/viewer.html?file={0}", string.Format("file:///android_asset/content/{0}", WebUtility.UrlEncode("program.pdf"))));
有人知道该代码的等价物吗?
我试过了
webView.loadUrl(String.format("file:///android_asset/pdfjs/web/viewer.html?file={0}", String.format("file:///android_asset/content/{0 }", URLEncoder.encode("program.pdf","utf-8"))));
但我想这是错误的,因为它没有做它应该做的事情
【问题讨论】: