GoCoding GoCoding
3年前
PDF.js Electron Viewer
模板开始ElectronReact项目。bash获取模板gitclonedepth1\https://github.com/electronreactboilerplate/electronreactboilerplate\electronpdfviewercdelectronpdfviewer设定仓库gitremoteseturl
秃头王路飞 秃头王路飞
2年前
JS数据类型检测
数据类型检测相信大家有的时候判断数据类型的时候会有疑惑1、typeof、instanceof用的话会有哪些缺陷呢?2、哪个api只要记住的话,就可以完美判断呢?1、typeof返回的都是字符串jstypeofSymbol()'symbol'typeofnull'object'typeof'object'typeof'ob
Souleigh ✨ Souleigh ✨
2年前
为什么选择CSS in JS?
为什么选择CSSinJS?<br!image(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/76c64e0649f37817d9cd54
LinMeng LinMeng
2年前
移动端rem.js
functionremRefresh(){letclientWidthdocument.documentElement.clientWidth;//将屏幕分成10等份letremclientWidth/1
Easter79 Easter79
3年前
sublime中调试js代码
首先安装nodejs(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fnodejs.org%2F)当然你可以使用其它诸如jsc(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Ftrac.webkit.org
Stella981 Stella981
3年前
JS nodeJs 的日期计算
dateutils前端引用<script type"text/javascript" src"dateutils.min.js"</script下载传送门,猛击我(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.co
Stella981 Stella981
3年前
Pixi.js 渲染 Tilemap
源码(https://gitee.com/LF/tilemap.pixi)预览(https://lf.gitee.io/tilemap.pixi/)游戏开发中或多或少都有接触过Tilemap,在Tiled编辑器里编辑好地图之后,导出数据,然后在游戏引擎(Cocos...)里就可以直接使用了,确实很方便。由于Pixi.js自身并不
Wesley13 Wesley13
3年前
JS操作数组
1.  如果数组中存在item,则返回元素在数组中的位置,否则返回1functionindexOf(arr,item){if(Array.prototype.indexOf){//IE浏览器支不支持indexOfreturnarr.indexOf(item);}
Easter79 Easter79
3年前
SpringMvc解决js跨域
前言:     跨站HTTP请求(CrosssiteHTTPrequest)是指发起请求的资源所在域不同于该请求所指向资源所在的域的HTTP请求。比如说,域名A(http://domaina.example(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fdomaina.
Stella981 Stella981
3年前
NW.js 入门指南
本文同步至http://www.waylau.com/nwjsquickstart/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.waylau.com%2Fnwjsquickstart%2F)本文介绍了NW.js(nodewebkit)的基本知识,通过本入门指