- 博客(9)
- 收藏
- 关注
原创 网格布局··
head>*,*::after,margin: 0;padding: 0;body {html {body {.heading {width: 70%;.header {width: 65%;.footer {.img {.item-4 {.item-5 {.item-6 {.item-7 {.item-8 {.item-9 {.item-10 {.item-11 {
2023-02-16 16:59:17
111
原创 vue数据加密解密
const CryptoJS = require('crypto-js'); //引用AES源码js const key = CryptoJS.enc.Utf8.parse("1234123412ABCDEF"); //十六位十六进制数作为密钥const iv = CryptoJS.enc.Utf8.parse('ABCDEF1234123412'); //十六位十六进制数作为密钥偏移量//加密方法export function Encrypt(word){ let srcs .
2022-02-25 16:29:33
2442
原创 判断数组对象的某一属性值,是否完全相同
const type2=newlist.some(r=>newlist.filter(r1=>r1.qixian!==r.qixian).length>=1) console.log(type2); if(type2==true){ console.log(type2); t...
2022-01-29 21:48:13
1197
原创 2021-06-20使用 constructor 属性来查看对象类型
<script>var fruits = ["Banana", "Orange", "Apple", "Mango"];document.getElementById("demo").innerHTML = isArray(fruits) ; function isArray(myArray) { return myArray.constructor.toString().indexOf("Array") != -1;}</script>...
2021-06-20 18:14:07
180
原创 match()方法
match() 方法可在字符串内检索指定的值,或找到一个或多个正则表达式的匹配<img id="myimage" onclick="changeImage()" src="/images/pic_bulboff.gif" width="100" height="180"><p>点击灯泡就可以打开或关闭这盏灯</p><script>function changeImage(){ element=document.getElementById(...
2021-06-20 09:55:49
249
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人