1 2 3 4 5 ··· 27 下一页
摘要: window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net window.location.host; //返回url 的主机部分,例如:mp.csdn.net window.location.hostna 阅读全文
posted @ 2022-05-16 11:05 if年少有为 阅读(103) 评论(0) 推荐(0) 编辑
摘要: //*内容不可编辑。此行必须在setContent函数后 修改属性,否则属性设置不成功*/ $("#LAY_layedit_1").contents().find("body[contenteditable]").prop("contenteditable", false);//jquery获取if 阅读全文
posted @ 2022-05-13 10:27 if年少有为 阅读(622) 评论(0) 推荐(0) 编辑
摘要: layedit的富文本编辑器在数据提交后是无法设置清空文本区域的数据,这时候我们可以修改layedit.js 来实现layedit的数据清空。 向layedit.js中添加代码 //清楚编辑器中的内容 Edit.prototype.clearContent = function (index) { 阅读全文
posted @ 2022-05-11 21:18 if年少有为 阅读(480) 评论(0) 推荐(0) 编辑
摘要: mkdir kafka cd kafka 编写docker-compose.yml version: '3' services: zookeeper: image: 'bitnami/zookeeper:3.7' ports: - '2190:2181' environment: - ZOO_ENA 阅读全文
posted @ 2022-04-22 15:59 if年少有为 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 1.拉取镜像 docker pull zookeeper:3.4.11 2.zookeeper集群搭建 mkidr zk-cluster cd zk-cluster vim docker-compose.yml 写入如下内容 version: '2' services: zoo1: image: z 阅读全文
posted @ 2022-04-22 14:40 if年少有为 阅读(932) 评论(0) 推荐(0) 编辑
摘要: 在VirtualBox中复制Linux虚拟机后,启动后发现没有网卡的启动(即输入/sbin/ifconfig后没有eth0),重启network服务,提示的错误为: Device eth0 does not seem to be present, delaying initialization 问题 阅读全文
posted @ 2022-04-09 16:27 if年少有为 阅读(246) 评论(0) 推荐(0) 编辑
摘要: centos6(centos6官方源已下线,建议切换centos-vault源) wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo 或者 curl -o / 阅读全文
posted @ 2022-04-09 15:13 if年少有为 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 转载Git解决中文乱码问题 git status 乱码 解决方法: git config --global core.quotepath false git commit 乱码 解决方法: git config --global i18n.commitencoding utf-8 git statu 阅读全文
posted @ 2022-01-28 16:33 if年少有为 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 我们首先来介绍如何实现禁止复制,知道了禁止的方式,再破解就容易了。 实现禁止复制粘贴 比较简单,直接上代码: <style type="text/css"> /* 最简单的实现禁止复制的方法,采用css方式禁止文字选择,当然这只兼容webkit内核浏览器 */ * { -webkit-user-se 阅读全文
posted @ 2021-08-31 09:11 if年少有为 阅读(552) 评论(0) 推荐(0) 编辑
摘要: vim /etc/sysconfig/network-scripts/ifcfg-ens33 增加如下内容 DNS1=8.8.8.8 DNS2=114.114.114.114 PEERDNS="no" 重启网络 service network restart 阅读全文
posted @ 2021-06-07 10:14 if年少有为 阅读(899) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 27 下一页