logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

electron中实现通过webview实现内嵌网页并嵌入css样式和js脚本等

<webview id="geekori" src="https://baidu.com" style="width:400px; height:300px" ></webview>参考:https://www.cnblogs.com/badaoliumangqizhi/p/12995335.html

#html
vue 实现文字转语音tts

调用本地方法实现文字转语音 。缺点:win7系统部分版本不发声音,优点:不需要外网支持const synth = window.speechSynthesisconst msg = new SpeechSynthesisUtterance()created() {this.handleSpeak('要合成的文字')},/***text – 要合成的文字内容,字符串* lang – 使用的语言,字符

#javascript#html
react请求接口方式

1.jQuery, axios 基于xhr 的封装,axios 是promise 风格 可以解决回调地狱2.fetch: 原生函数,不用下载, 不用xhr ,也能发送请求, 内置的函数, 本身也是promise的风格 老版本浏览器可能不支持xhr不符合关注分离的原则search =aysnc() => {try{let res = await fetch('http://')let data

vscode中 react插件的安装

插件市场找到: ES7 React/Redux/GraphQL/React-Native snippet 然后安装// rcc 类式组建// rfc 函数式组件import React, { Component } from 'react'export default class index extends Component {render() {return (<div>

Vue 获取最近一个月,前三个月, 最近半年,最近一年, 当前月末日期

/** 获取当前年月日* */export function nowDate() {const loadYear = new Date().getFullYear()let loadMonth = new Date().getMonth() + 1let loadDay = new Date().getDate()if (loadMonth >= 1 && loadMonth

#javascript
Vue 获取最近一个月,前三个月, 最近半年,最近一年, 当前月末日期

/** 获取当前年月日* */export function nowDate() {const loadYear = new Date().getFullYear()let loadMonth = new Date().getMonth() + 1let loadDay = new Date().getDate()if (loadMonth >= 1 && loadMonth

#javascript
uni-app 开发小程序实现 调转到第三方地图实现导航

点击页面地址提示信息调用方法地图组件<map style="width:100%;height:500upx;" :latitude="latitude" :longitude="longitude" :markers="marker"></map>methods: {goHere() {uni.openLocation({longitude: 109.490360, //

#小程序#html
到底了