对不起这样的菜鸟问题.
我只是按照谷歌加登录的Step1到Step4. https://developers.google.com/+/web/signin/ 登录似乎成功,同时出现错误'未知RPC服务:widget-interactive-I0_1370237493291'.以下是Chrome上的控制台日志.
XHR finished loading: "https://plusone.google.com/_/scs/apps-static/_/js/k=oz.connect.en_US.B31L_d…sv=1/d=1/ed=1/am=GA/rs=AItRSTOhxGvE7YZFbwjOy6nLkxCnNjz3og/cb=gapi.loaded_1". signin:15
XHR finished loading: "https://plusone.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.hgKKOofQjvI.…sv=1/d=1/ed=1/am=EQ/rs=AItRSTOeNwU4i5ApX9gPGjnZ0AzovKWmWw/cb=gapi.loaded_0". signin:15
Unknown RPC service: widget-interactive-I0_1370237493291 cb=gapi.loaded_0:71
signed in
Run Code Online (Sandbox Code Playgroud)
我认为错误是关于不完整的事情.我无法弄清楚错误是什么以及如何弄清楚.我错过了什么?
这是代码.起源是http://localhost:3000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Gplus</title>
</head>
<body>
<h1>Gplus</h1>
<span id="signinButton">
<span
class="g-signin"
data-callback="signinCallback"
data-clientid="362449793624.apps.googleusercontent.com"
data-cookiepolicy="single_host_origin"
data-requestvisibleactions="http://schemas.google.com/AddActivity"
data-scope="https://www.googleapis.com/auth/plus.login">
</span>
</span>
<script type="text/javascript">
function signinCallback(authResult) {
if (authResult['access_token']) {
// Successfully authorized
// Hide the sign-in button now that the user is authorized, for example:
document.getElementById('signinButton').setAttribute('style', 'display: none');
console.log('signed in');
} else if (authResult['error']) {
// …Run Code Online (Sandbox Code Playgroud) Dartlang教程介绍包:meta https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#ch02-metadata
DartEditor识别上面教程中显示的元数据.本教程还介绍了如何创建自定义元数据并检索它.但是没有关于如何检索它的代码示例.