mui特定场景:
1- 比如要获取某个跨域网站的元素值
(https网站不能发起http的ajax请求,所以只能采用以下方法)
加载子页面
植入js,并执行
跳转到自己的页面,然后把需要存储的值放到localStorage中,可在自己的页面中取值以存储操作
v2版本,直接调用接口后台处理,之后刷新当前页
mui特定场景:
1- 比如要获取某个跨域网站的元素值
(https网站不能发起http的ajax请求,所以只能采用以下方法)
加载子页面
植入js,并执行
跳转到自己的页面,然后把需要存储的值放到localStorage中,可在自己的页面中取值以存储操作
v2版本,直接调用接口后台处理,之后刷新当前页
原文作者: TangGod
原文链接: https://tanggod.github.io/2018/07/26/mui/
发表日期: July 26th 2018, 12:00:00 am
版权声明: 本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true