js 惰性载入函数( 能力检测 )
今天在做项目时,需要对地址栏参数做处理,于是便作了如下处理javascriptgetUrlParam(){letparams{};consturlwindow.location.href.replace(/\//g,'').replace(/\?/g,'&');url.replace(/?&(^&)
Stella981 Stella981
4年前
Pomelo热更新刷新handler和remote 以及 pomelo使用bearcat进行热更新
一.开启原生pomelo的hotreload支持1.pomelo版本:2.2.5,编辑脚本app.js加入如下代码//全局配置app.configure('production|development',function(){/
Stella981 Stella981
4年前
ReactNative—Text标签中的Style学习
1.引用需要的组件这里用到_AppRegistry,StyleSheet,Text,View_importReact,{Component}from'react';import{AppRegistry,//JS运行所有ReactNative应用的入口,必须引用Style
Wesley13 Wesley13
4年前
JS中POST带参数跳转
有个项目中要跳转到另外一个项目,还需要带参数考虑到安全性的问题,最好是用POST跳转,不能再URL中拼参所以找到了这个方法直接在JS中模拟form表单POST提交1functiontoQrPay(){23varparamesnewArray();4
Wesley13 Wesley13
4年前
JS字符串和二进制列表的相互转换
JS字符串和二进制列表的相互转换stringbinaryarrayvarstr'teststring.';vararrArray.prototype.map.call(str,function(c){returnc.charCodeAt(0);
Stella981 Stella981
4年前
Echarts:实现拖拽效果
1<!DOCTYPEhtml2<html3<head4<metacharset"utf8"5<scriptsrc"./echarts.js"</script6</head7<body8<div
Stella981 Stella981
4年前
D3.js area函数
!(http://static.oschina.net/uploads/space/2015/0402/110259_Cfoo_861926.png)var area  d3.svg.area().interpolate("monotone").x(function(d) { return x(d.date); }).y0(260).y1(
Stella981 Stella981
4年前
Serclet java常用的方法以及注释(配web.xml 配置代码)
Serclet是一个容器接口,可以实现Serclet接口来达到简单的Web和Tomcat之间的交互1,web.xml配置代码以及说明<?xmlversion"1.0"encoding"UTF8"?<webappxmlns:xsi"http://www.w3.org/2001/XMLSchemai
【团队效率提升】Python-PyWebIO介绍
PyWebIO提供了一系列命令式的交互函数,能够让咱们用只用Python就可以编写Web应用,不需要编写前端页面和后端接口,让简易的UI开发效率大大提高。