访问cookies或WebBroswer类从phonegap插件运行windows手机 [英] Access to cookies or WebBroswer class from phonegap plugin running windows phone

查看:140
本文介绍了访问cookies或WebBroswer类从phonegap插件运行windows手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从Windows Phone 8上运行的phonegap应用程序管理cookies(删除它)。

I have to manage cookies (delete it) from my phonegap app running on a windows phone 8.

我创建了一个C#phonegap插件。在Web上,我发现WebBroswer类可以是删除我的webView的cookie的方式。

I've created a C# phonegap plugin. On the web, I've found that WebBroswer class can be the way to delete the cookies of my webView.

但是我找不到访问这个类的确切方法从我的phonegap插件。

But I cannot find the exact way to access to this class from my phonegap plugin.

Windows Phone 8中的phonegap插件扩展了BaseCommandphonegap类。

The phonegap plugin in windows phone 8 extends the "BaseCommand" phonegap class.

任何帮助将非常感激。

Julien T。

推荐答案

这可能是您要查找的内容: http://github.com/bez4pieci/Phonegap-Cookies -Plugin

This might be what you're looking for: http://github.com/bez4pieci/Phonegap-Cookies-Plugin

用法:

window.cookies.clear(function(){
console.log('Cookies cleared!');
});

window.cookies.clear(function() { console.log('Cookies cleared!'); });

这篇关于访问cookies或WebBroswer类从phonegap插件运行windows手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆