摘要:
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>子组件传值给父组件与父组件传值给子组件</title> 6 <script src="https://unpkg.com/vue/dist/vue.js"></ 阅读全文
摘要:
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>获取子组件的数据,然后求和</title> 6 <!--适应移动端--> 7 <meta name="viewport" content="width=devi 阅读全文
摘要:
<html> <head> <meta charset="utf-8" /> <title></title> <script> window.onload=function(){ setInterval("rollImg()",2000); } var imgarr=["https://www.w3 阅读全文
摘要:
/^\w+$/ 匹配字母、数字和下划线组成的字符串 /^([1-9]|0[1-9]|1[012])$/ 匹配一年的十二个月份或者/^(0?[1-9]|1[012])$/ /^[a-zA-Z]+$/ 判断字符串是否全是字母 /^\d+$/ 判断字符串是否全是数字 /^[a-zA-Z].+@.+\.[a 阅读全文
摘要:
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>呼吸灯效果</title> 6 <!--适应移动端--> 7 <meta name="viewport" content="width=device-width 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>画椭圆</title> <style> div{ width:200px; height:100px; background-color:#ffa500; border-radiu 阅读全文