示例 10 : 对数组的内容进行反转 方法 reverse,对数组的内容进行反转 <script> function p(s){ document.write(s); document.write("<br>"); } var x = new Array(3,1,4,1,5,9,2,6); p('数 ...
分类:
编程语言 时间:
2020-07-22 11:29:52
阅读次数:
80
<!DOCTYPE html><html lang="en"><head> <title>Title</title> <meta charset="UTF-8"><!--<!– <script src="js_file01.js"></script>–> 尽量放后 ...
分类:
Web程序 时间:
2020-07-22 02:11:39
阅读次数:
166
ES6+react.js 中定义公共方法、常量 1、公共方法 1.1 constantFunction.js 文件(不用写class域中) // 解析时间 将时间戳变成可读的string const parseTime = (text)=>{ if(!!text && typeOf(text) 'n ...
分类:
Web程序 时间:
2020-07-21 22:42:19
阅读次数:
190
示例1: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>局部打印案例</title> 6 7 <script t ...
分类:
Web程序 时间:
2020-07-21 22:31:09
阅读次数:
94
####子组件,有一个childMethod方法 <template> <view> </view> </template> <script> export default { data(){ return { } }, onLoad(){ }, methods:{ childMethod() { ...
分类:
其他好文 时间:
2020-07-21 22:12:51
阅读次数:
88
<template> <view> <!-- 封装一个添加按钮 --> <view class="cricle-view"> <text class="add-sym">+</text> </view> </view> </template> <script> export default { da ...
分类:
其他好文 时间:
2020-07-21 21:39:46
阅读次数:
53
chenkHandle(row){ //原页打开 // this.$router.push({path:'/duocai/detail',query:{ checkType:row.id,role:"manger"}}); //新开页 let newUrl = this.$router.resolv ...
分类:
其他好文 时间:
2020-07-21 21:33:09
阅读次数:
73
data(){ return{ codeTxt:'(function() {console.log("run")})()' } } <textarea v-model="codeTxt"></textarea> <button class="btn" @click="runCode">运行</but ...
分类:
Web程序 时间:
2020-07-21 16:36:57
阅读次数:
123
首先就是声明文档下面的 其次就是加上这段代码 完事。 <script> const scale = document.documentElement.clientWidth / 750 document.documentElement.style.fontSize = (32 * Math.min( ...
分类:
移动开发 时间:
2020-07-21 14:28:17
阅读次数:
107
Promise 源码 https://github.com/lfp1024/promise promise-a-plus const PENDING = 'PENDING' const REJECTED = 'REJECTED' const RESOLVED = 'RESOLVED' const r ...
分类:
其他好文 时间:
2020-07-21 01:26:28
阅读次数:
102