📜  在 es6 中导入条带 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:29.908000             🧑  作者: Mango

代码示例1
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');

(async () => {
  const customer = await stripe.customers.create({
    email: 'customer@example.com',
  });

  console.log(customer.id);
})();