Javascript 将HTML登录按钮添加到页面

Javascript 将HTML登录按钮添加到页面,javascript,html,Javascript,Html,我试图使用Google+在我的网站上添加一个HTML登录按钮,但当我点击按钮时,什么也没发生。 我已经按照谷歌的指示去做了。 这是我的密码: </head> <body> <span id="signinButton"> <span class="g-signin" data-callback="signinCallback" data-clientid="900023009741-g4eodlf59og2i6rkllcd

我试图使用Google+在我的网站上添加一个HTML登录按钮,但当我点击按钮时,什么也没发生。 我已经按照谷歌的指示去做了。 这是我的密码:

</head>
<body>

<span id="signinButton">
  <span
    class="g-signin"
    data-callback="signinCallback"
    data-clientid="900023009741-g4eodlf59og2i6rkllcdcmlqu4c3got8.apps.googleusercontent.com" // my client ID details which I have created on google's developer console
    data-cookiepolicy="single_host_origin"
    data-requestvisibleactions="http://schema.org/AddAction"
    data-scope="https://www.googleapis.com/auth/plus.login">
  </span>
<script>
function signinCallback(authResult) {
  if (authResult['status']['signed_in']) {

    document.getElementById('signinButton').setAttribute('style', 'display: none');
  } else {
    console.log('Sign-in state: ' + authResult['error']);
  }
}
</script>
</span>
</body>


这一错误意味着u r客户端id错误。再次检查u r客户端id实际上我在“JAVASCRIPT源代码”中给出了这一个,因为我没有域。您是否重写了htaccess文件htaccess文件?这是哪个文件?