如何在保存数据或通过 sql 查询更新数据时删除脚本注入?

问题描述

我的 sql 查询,我将数据插入到我的表并更新它

if (addressId == -1) {
  let s = MysqL.write('customer_address').insert({
      customer_key: customerKey,line1: line1,line2: line2,lat: lat,lng: lng,city: city,state: state,pincode: pincode,contact: contact,landmark: landmark,updated_at: moment().format("YYYY-MM-DD HH:mm:ss"),created_at: moment().format("YYYY-MM-DD HH:mm:ss")
    }).then(function(res)

      {
        if (res.length > 0) {
          cb(null,{
            address_id: res[0],customer_key: customerKey,created_at: moment().format("YYYY-MM-DD HH:mm:ss"),'hub_id': result.hub_id
          })
        } else {
          cb(true,{
            'errorMessage': 'Unable to add address try again'
          })
        }

但是每当我在更新时放置任何脚本,例如在 <> 中包含的警报中进行测试。 它在浏览器中弹出一个显示开发中测试的窗口。 请提供有关如何删除它的任何合适答案,因为它对我有很大帮助,因为我已经尝试了多种解决方案。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)