上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: 1、PHP调用shell函数 string system ( string $command [, int &$return_var ] ) string exec ( string $command [, array &$output [, int &$return_var ]] ) void p 阅读全文
posted @ 2023-05-12 10:15 张志健 阅读(97) 评论(0) 推荐(0)
摘要: 背景:使用python脚本传递参数在实际工作过程中还是比较常用,以下提供了好几种的实现方式: 一、使用sys.argv的数组传入说明:使用sys.argv必须按照先后的顺序传入对应的参数;sys.argv则封装了传入的参数数据,作为数组的方式已经传入 import sys print("传入参数的总 阅读全文
posted @ 2023-05-06 14:46 张志健 阅读(3394) 评论(0) 推荐(0)
摘要: Python2.7现在已经正式被放弃了,运行会报错,所以得玩Python3版本了; 这里分享Centos7系统下将Python2.7升级3.6.9的方法,非常靠谱本人刚刚测试通过,看了老外的教程; 简单三步,就能快速讲过Python2+升级到Python3+; 第一步:安装软件仓库 yum inst 阅读全文
posted @ 2023-02-09 16:02 张志健 阅读(239) 评论(0) 推荐(0)
摘要: 代码: set: function () { Form.api.bindevent($("form[role=form]"), function () {}, function () {}, function (success, error) { layer.confirm('请仔细核对比例,避免比 阅读全文
posted @ 2023-01-09 11:01 张志健 阅读(2382) 评论(0) 推荐(0)
摘要: 先来感受一下变灰后的效果。 这种灰色的效果怎么实现的呢?如何做到图片、文字、按钮都变灰的效果呢? 方案 1,换一套灰色的 UI,那显然成本太大了,用脚指头想一想就知道不太可能。 方案 2,用魔法! 不好意思,还真被你猜中了!在网页端按下 F12,打开开发者模式,用元素选择器定位到 HTML 标签上, 阅读全文
posted @ 2022-12-02 15:39 张志健 阅读(317) 评论(0) 推荐(0)
摘要: 使用 composer 下载更新卸载类库 前言:要下载什么包,可以去 https://packagist.org/ 找一下包名及其版本信息 1)配置composer.json文件,并使用composer install 命令下载类包,下面以下载 phpmailer 类包为例 { "require": 阅读全文
posted @ 2022-11-23 14:34 张志健 阅读(506) 评论(0) 推荐(0)
摘要: 背景 vue中默认的路由模式是hash,会出现烦人的符号#,如http://127.0.0.1/#/。改为history模式可以解决这个问题,但是有一个坑是:强刷新、回退等操作会出现404。 Vue改用History路由模式 修改src/router/index.js export default 阅读全文
posted @ 2022-11-16 16:46 张志健 阅读(4021) 评论(1) 推荐(0)
摘要: 使用https://docs.openzeppelin.com/contracts/4.x/erc721中的简单案例 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URISt 阅读全文
posted @ 2022-11-13 21:01 张志健 阅读(247) 评论(0) 推荐(0)
摘要: npm install moment --save 在main.js中引入并挂载 import moment from 'moment'; Vue.prototype.$moment = moment; 使用:YYYY-MM-DD转成时间戳 this.$moment(YYYY-MM-DD).valu 阅读全文
posted @ 2022-11-09 23:25 张志健 阅读(1600) 评论(0) 推荐(0)
摘要: npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! request to https://registry.npm.taobao.org/cnpm 阅读全文
posted @ 2022-11-07 20:47 张志健 阅读(892) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页