将前端json字符串转换成htmlGET字符串

var obj = {"common":{"bid":"","keyId":"","assetType":"PMETAL","assetCode":"iAu100g","status":"01","shortName":"iAu100g","longName":"iAu100g","tfStructure":"N","tfDel":"N","tfReal":"Y","operateTime":"","operateDate":"","dataType":"01","tfTradable":"Y","nature":"01","market":"07","prodGradeType":"01"},"assetPackageInfo":null,"assetFolders":null,"productGradeRelationship":null,"assetPmetalBaseInfo":{"keyId":"","bid":"","assetBid":"","marketBid":"07","shortname":"iAu100g","longname":"iAu100g","assetCode":"iAu100g","unit":"01","tradingUnit":"100","tradeUnitType":"01","settleVariety":"01","settleType":"01","calRepertory":"Y","realTimeComputing":"Y","marginTrade":"Y","marginRatio":"0.8","replaceSettle":"Y","replaceSettleVariety":"01","tradeMode":"01","purePercent":"100","assetTypes":"01","calendarName":"sss","calendarbid":"4","otherInfo":"iAu100g"}};

var jsonString = JSON.stringify(obj);

var encodedString = encodeURIComponent(jsonString);

console.info(encodedString);

相关推荐
懒大王爱吃狼25 分钟前
Python教程:python枚举类定义和使用
开发语言·前端·javascript·python·python基础·python编程·python书籍
待磨的钝刨1 小时前
【格式化查看JSON文件】coco的json文件内容都在一行如何按照json格式查看
开发语言·javascript·json
逐·風4 小时前
unity关于自定义渲染、内存管理、性能调优、复杂物理模拟、并行计算以及插件开发
前端·unity·c#
Devil枫5 小时前
Vue 3 单元测试与E2E测试
前端·vue.js·单元测试
尚梦5 小时前
uni-app 封装刘海状态栏(适用小程序, h5, 头条小程序)
前端·小程序·uni-app
GIS程序媛—椰子6 小时前
【Vue 全家桶】6、vue-router 路由(更新中)
前端·vue.js
前端青山6 小时前
Node.js-增强 API 安全性和性能优化
开发语言·前端·javascript·性能优化·前端框架·node.js
毕业设计制作和分享7 小时前
ssm《数据库系统原理》课程平台的设计与实现+vue
前端·数据库·vue.js·oracle·mybatis
清灵xmf9 小时前
在 Vue 中实现与优化轮询技术
前端·javascript·vue·轮询
大佩梨9 小时前
VUE+Vite之环境文件配置及使用环境变量
前端