
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
1、需要添加依赖包,在pom.xml文件中添加javaxjavaee-api7.0provided2、客户端代码在这里我为了做成httpsession登录后是同一个,所以我做成两个页面,一个登录跳转页面,一个用于链接WebSocket接收消息a.登录页面<head><meta charset="UTF-8"><
Nodejs连接redis目前Nodejs端使用redis模块对redis服务进行连接,代码如下:var redisClient = redis.createClient(config.redisAuth);redisClient.on("error", function (err) {redisClient.quit()logger.error("Error " + ...
webView.loadUrl(“about:blank”);这个方法会 销毁所有的video和audio 包括js的所有正在运行的function方法2:复制代码@Overridepublic void onPause() {super.onPause();myWebView.onPause();myWebView.pauseTimers();}@Overridepublic void onRe
网上的json中国省市区好像都不全,不然就是格式不对,自己费了好大功夫,终于弄好了,分享给大家,有钓鱼岛的哦 [{ "name": "北京", "city":[{"name":"北京", "area":["东城区","西城区","
Vue项目,因为前后端分离,所以在请求后端接口时,时常遇到跨站问题,真心入坑啊1、如果前后端项目部署时候不在同域名下,前端不用配置,后端做好CORS配置即可,后端配置可参考https://blog.csdn.net/envon123/article/details/832702772、如果前后端部署在同一个域名,就不会有跨域问题,但一般是生产环境部署是同一个域名下,但在开发环境时,并不是同域名..
window.vue = new Vue({router,render: h => h(App)}).$mount('#app')
http-vhost.configVirtual Hosts#DocumentRootD:/dist#ServerName vue.dist.me#Allow from all#httpd.comfig#This is the main Apache HTTP server configuration file.It c...
当在父组件通过props传Array/Object类型值给子组件的时候,如果子组件的props接收default为exampleData:{type:Array,default:[]}时,系统会报错Invalid default value for prop “slides”: Props with type Object/Array must use a factory ...
<template><div><div class="face"><audio id="audio" ref="audioPlay" :src="videoImg ? faceStep[currentStep].voice : ''
const getDefaultState = () => {return {items: [],status: 'empty'}}// initial stateconst state = getDefaultState()const actions = {resetCartState ({ commit }) {commit('...







