源代码:http://download.csdn.net/detail/liumingm... 游戏开发流程: 1、创建画布: 将画布放在div标签里面,这样可以控制画布居中的位置,再对div标签加上一些样式比如border和border-radius,这样一来使其看上去像手机,利于观看。 <div ...
分类:
Web程序 时间:
2020-04-06 15:32:59
阅读次数:
94
个人博客:柚子青年。 原文链接:微信小程序 - 渲染HTML 微信小程序现在已经被广泛应用,开发方式类似 Vue。 阅读本文需要有小程序基础。 rich-text 在渲染 DOM 这一块,小程序没有 Vue 的 v-html 也没有 React 的 dangerouslySetInnerHTML,不 ...
分类:
微信 时间:
2020-04-06 13:59:24
阅读次数:
126
路由协议基础 2.1 路由概念 路由是指导IP报文发送的路径信息。 2.2 路由过程 接收到数据包后,首先查看目的地址,然后检查自己的路由表,目的地址与掩码分别做”与“操作,查找到合适的路由条目后,根据出接口和下一跳地址信息转发出去。 2.3 路由表 几乎所有的网络设备,所有的操作系统都有路由表。 ...
分类:
其他好文 时间:
2020-04-06 00:18:04
阅读次数:
84
题目描述: class Solution: def checkOverlap(self, radius: int, x_center: int, y_center: int, x1: int, y1: int, x2: int, y2: int) -> bool: a = max(0, x1 - x ...
分类:
其他好文 时间:
2020-04-05 11:27:27
阅读次数:
56
1 class Solution: 2 def checkOverlap(self, radius: int, x_center: int, y_center: int, x1: int, y1: int, x2: int, y2: int) -> bool: 3 4 # Getting the c ...
分类:
其他好文 时间:
2020-04-05 09:35:21
阅读次数:
57
(1圆角边框 border-radius border-top-left-radius(左上角的形状) border-top-right-radius(右上角的形状) border-bottom-left-radius(左下角的形状) border-bottom-right-radius(右下角的形 ...
分类:
Web程序 时间:
2020-04-04 23:04:38
阅读次数:
134
IE兼容CSS3圆角border-radius的方法(同时兼容box-shadow,text-shadow)IE兼容CSS3圆角border-radius,box-shadow,text-shadow的方法 1.下载ie-css3.htc:http://www.zhangxinxu.com/stu. ...
分类:
其他好文 时间:
2020-04-01 23:40:25
阅读次数:
132
当然,插件市场也是有类似的封装的 <style lang="scss" scoped> .bg{ background: white; padding: 10rpx 0; } .swiper{ width: 710rpx; height: 220rpx; border-radius:15rpx ; ...
分类:
其他好文 时间:
2020-04-01 19:38:42
阅读次数:
121
import random?print(random.random())#(0,1) float 大于0且小于1之间的小数?print(random.randint(1,3)) #[1,3] 大于等于1且小于等于3之间的整数?print(random.randrange(1,3)) #[1,3) 大 ...
分类:
其他好文 时间:
2020-03-30 19:58:08
阅读次数:
59
高级的 文件、文件夹、压缩包 处理模块 shutil.copyfileobj(fsrc, fdst[, length]) 将文件内容拷贝到另一个文件中 1 import shutil2 3 shutil.copyfileobj(open('old.xml','r'), open('new.xml', ...
分类:
其他好文 时间:
2020-03-30 19:48:23
阅读次数:
80