weixin_33747129 2016-07-26 17:17 采纳率: 0%
浏览 330

获取formData附加的数据

I have a new FormData then added caption as key.

var formData = new FormData();
formData.append('caption','abc');

How do I get abc from it? I tried using .get but it's not supported in mobile chrome.

formData.get('caption'); // this will not work by default in chrome. 

Is there anywhere I can get caption value?

  • 写回答

1条回答 默认 最新

  • ℙℕℤℝ 2016-07-26 17:44
    关注

    By default Chome does not support the .get() method, you can enable that functionality by activating an flag.

    Chrome default support for method append.

    Methods which chrome does't support in default behavior : delete, get, getAll, has, and set.

    For activating flags in Chrome you can go to the following link:

    chrome://flags/#enable-experimental-webkit-features

    评论

报告相同问题?

悬赏问题

  • ¥15 Coze智能助手搭建过程中的问题请教
  • ¥15 12864只亮屏 不显示汉字
  • ¥20 三极管1000倍放大电路
  • ¥15 vscode报错如何解决
  • ¥15 前端vue CryptoJS Aes CBC加密后端java解密
  • ¥15 python随机森林对两个excel表格读取,shap报错
  • ¥15 基于STM32心率血氧监测(OLED显示)相关代码运行成功后烧录成功OLED显示屏不显示的原因是什么
  • ¥100 X轴为分离变量(因子变量),如何控制X轴每个分类变量的长度。
  • ¥30 求给定范围的全体素数p的(p-2)/p的连乘积值
  • ¥15 VFP如何使用阿里TTS实现文字转语音?