小编Lar*_*Ang的帖子

Stripe无法处理错误'Uncaught(in promise)错误:我们无法从指定的Element检索数据.

我试图在https://stripe.com/docs/stripe-js/elements/quickstart之后使用Stripe.js

我做了html,css,javascript和那个url的样本一样.

但是,当我点击"提交付款"按钮时,它始终显示控制台错误而无法正常工作.

(index):1 Uncaught (in promise) Error: We could not retrieve data from the specified Element.
              Please make sure the Element you are attempting to use is still mounted.
    at new t ((index):1)
    at e._handleMessage ((index):1)
    at e._handleMessage ((index):1)
    at (index):1
Run Code Online (Sandbox Code Playgroud)

请让我知道为什么会这样.

javascript payment submit stripe.js

21
推荐指数
2
解决办法
2402
查看次数

Angular2 为什么 --base-href 构建选项不起作用

现在我正在尝试使用 --base-href 选项构建 angular2 项目,但效果不佳。

ng build --bh=/Chamber/frontend/

这是 .angular-cli.json 的内容

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "project": {
    "name": "frontend"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "D:/Work/Learn/Laravel/Chamber/Chamber/public/frontend/",
      "assets": [
        "assets",
        "assets/favicon.ico"
      ],
      "index": "index.html",
      "main": "main.ts",
      "polyfills": "polyfills.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.app.json",
      "testTsconfig": "tsconfig.spec.json",
      "prefix": "app",
      "styles": [
          "../node_modules/bootstrap/dist/css/bootstrap.min.css",
          "../node_modules/font-awesome/scss/font-awesome.scss",
          "styles.scss"
      ],
      "scripts": [
          "../node_modules/jquery/dist/jquery.min.js",
          "../node_modules/bootstrap/dist/js/bootstrap.min.js"
      ],
      "environmentSource": "environments/environment.ts",
      "environments": {
        "dev": "environments/environment.dev.ts",
        "prod": "environments/environment.prod.ts"
      }
    }
  ],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "lint": [
    {
      "project": "src/tsconfig.app.json" …
Run Code Online (Sandbox Code Playgroud)

build option angular2-build angular

4
推荐指数
1
解决办法
5702
查看次数

即使有边框半径设置,如何使 div 获得方形边框

现在我正在处理 HTML 页面。

我用'border-radius: 150px'制作了div,所以这个div有半径边框。

但我需要给这个 div 方形边框。当然不仅是精确的边框,也许类似边框之类的东西也可以。

但我不知道我该怎么做。请告诉我。

谢谢。

编辑

现在我发现 Chrome 和 Firefox 的大纲不一样。在 Chrome 中,轮廓仅适用于其自身区域,但在 Firefox 中,轮廓适用于包括其子 dom 节点的区域。现在我想让Firefox和Chrome的大纲动作一样。我怎样才能在 Firefox 中做到这一点。

html css border

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

angular ×1

angular2-build ×1

border ×1

build ×1

css ×1

html ×1

javascript ×1

option ×1

payment ×1

stripe.js ×1

submit ×1