Python进阶者 Python进阶者
3年前
手把手教你使用JavaScript打造一款扫雷游戏
大家好,我是皮皮。扫雷大家都玩过,今天我们就是用JavaScript来打造扫雷游戏。废话不多说,直接看下效果;上图是失败后的结果。一、思路分析我们新建一个首页,在首页放置一个点击开始游戏的按钮,动态生成100个小格,即100div;然后通过点击div进行扫雷操作,然后扫雷成功或者失败显示对应的结果;二、静态页面搭建2.1结构层
正则匹配 隐藏手机号中间4位
/隐藏手机号中间4位@param$mobile@returnstring|string|null/finalprotectedfunctionhideMobilePhoneNumber($mobile)$IsWhatpregmatch('/(0092,3\?29096,7\?09?)/i',$
昔不亏 昔不亏
4年前
「Vue — 插件」PDF预览vue-pdf
样式如图:1:npminstallsavevuepdf2:在需要使用的页面中js<divclass"page"{{currentPage}}/{{pageCount}}</div<divclass"pdf"<span@click"changePdfPage(0)"class"arrow":class"{g
Stella981 Stella981
4年前
Nginx配置优化
一、配置Nginx隐藏版本号 1修改源码包,必须在安装之前(测试命令curlIhttp://192.168.200.102)yumyinstallpcredevelzlibdevelopenssldevel gccgcccmakeuseraddMs/sbin/nologinnginxtarx
Stella981 Stella981
4年前
Echarts:实现拖拽效果
1<!DOCTYPEhtml2<html3<head4<metacharset"utf8"5<scriptsrc"./echarts.js"</script6</head7<body8<div
Stella981 Stella981
4年前
Codeforces Round #565 (Div. 3) C. Lose it!
链接:https://codeforces.com/contest/1176/problem/C(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fcodeforces.com%2Fcontest%2F1176%2Fproblem%2FC)题意:Youare
Stella981 Stella981
4年前
Emmet 基础使用之 HTML 篇
!emmet(https://static.oschina.net/uploads/img/201803/08122219_aqr2.png"Emmet基础使用之HTML篇")1.1.内嵌元素子元素如:divulli输出:<div
Stella981 Stella981
4年前
React Native 开发豆瓣评分(八)首页开发
首页完成效果展示:<divstyle"textalign:center;"<imgsrc"https://img2018.cnblogs.com/blog/1312841/201907/1312841201907181353098021875493361.gif"/</div一、开发占位图组件在没有数
Stella981 Stella981
4年前
DIV+CSS+JS实现的文字色彩渐变
如题,这是一个简单的 CSS(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.libertystudio.net%2Ftag%2Fcss) DIV JavaScript(https://www.oschina.net/action/GoToLink?urlhttp%3
Stella981 Stella981
4年前
DIV+CSS网页错位原因解决方法
常常我们会遇到我们要设置在一行显示的布局,却因为种种原因造成了错位,看到结果是在一行的最后一个盒子布局错位掉下去了(如下图)。!(http://static.oschina.net/uploads/space/2016/0307/205407_XgOA_2460148.png)!(http://static.oschina.net/uploads