0
 member x.Logovani(window : string) =
            let weburl = ref ""   
            let actwindow = ref ""     

            "Login" &&& fun _ ->
                browser.SwitchTo().Window(window) |> ignore
                weburl := currentUrl()
                actwindow := browser.CurrentWindowHandle
                return {|weburl,actwindow|}
 end

您好,我的问题是如何通过weburlactwindow最简单的方式,因为我的方式return不起作用。我想调用函数Logovani传递给该函数 varwindow然后收到weburlactwindow

4

1 回答 1

0

so finally i fixed it like this

 member x.Logovani(window : string) : string ref =
            let weburl = ref ""   
                browser.SwitchTo().Window(window) |> ignore
                weburl := currentUrl()
            weburl
 end
于 2015-07-10T13:15:03.053 回答