梦
4年前
nodejs获取串口中的信息
获取扫描仪中的信息并传到指定服务器app.js代码consthttprequire('http');constSerialPortrequire("serialport");constportnewSerialPort('com3');constfsrequire('fs');varquerystringre
Stella981 Stella981
3年前
PHP 判断当前日期是否是法定节假日或者休息日 (原)
//判断日期是不是节假日或者双休日接口@paramtime时间(时间戳或者Ymd都可)publicfunctionget_type_by_date(){$t$_GET'time';if($thisisDateTime($t)){
Jacquelyn38 Jacquelyn38
4年前
25、react入门教程
25、react入门教程25、react入门教程0.React介绍0.1什么是React?React(有时称为React.js或ReactJS)是一
Wesley13 Wesley13
3年前
1024!程序员节快乐!
if(!window.\_\_second\_open\_\_){document.getElementById('js\_image\_desc').innerHTML"1024!程序员节快乐!".replace(/\\r/g,"").replace(/\\n/g,"<br").replace(/\\s/g,"&nbsp;");}!
Stella981 Stella981
3年前
D3.js selectAll()函数与enter()函数
<!DOCTYPE html<html<head<meta charset"utf8"<titleD3 Test</title<script type"text/javascript" src"d3.v3.js"</script</head<body
Easter79 Easter79
3年前
vue 使用Echarts 环形图 自定义legend formatter 富文本标签
main.js引入echarts//引入echartsimportEchartsfrom'echarts'Vue.prototype.$echartsEcharts<template<div<!为ECharts准备一个具备大小(宽高)<divid"ringDiagram":style"{w
Stella981 Stella981
3年前
Docx模板引擎示例
<scripttype"text/javascript"src"http://www.xdocin.com/xdoc.js"</script<scripttype"text/javascript"XDoc.run("http://www.xdocin.com/DocxEngine.docx","docx",
Wesley13 Wesley13
3年前
unity中加载下一个场景且不销毁当前场景的方法
1.usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.UI;usingUnityEngine.SceneManagement;publicclas
Stella981 Stella981
3年前
Linux锐速当前连接数等状态查询,service serverSpeeder status 服务,帮助信息
使用serverSpeeder服务进行锐速的启动,停止,以及重新加载配置等操作;各参数说明如下:1.serviceserverSpeederstart:启动锐速,加载加速模块;使用/serverspeeder/etc/config文件中的配置作为模块加载时的初始化参数;1.serviceserverSp
用JS实现简单的屏幕录像机 | 京东云技术团队
本文将介绍如何用JS实现简单的屏幕录像机。一、录制准备创建一个按钮Startrecording书写JavaScriptvarRECORDINGONGOINGfalse;varrecordingToggledocument.getElementById("r