2018年8月21日

JS 基础3 + Django

摘要: 1. JS正则表达式的两个功能: 。 test: 判断字符串是否符合正则的规则 。 exec:获取匹配的数据,默认只取第一个 rep = /\d+/; //创建正则表达式对象, ^开始符, $终止符;末尾加g, 全局匹配;m表示多行匹配; 2。组件 EasyUI: http://www.jeasyu 阅读全文

posted @ 2018-08-21 17:02 你是不夜星空 阅读(634) 评论(0) 推荐(0)

用Python 操作Web 前端 基础 4

摘要: 1、JS 正则 test - 判断字符串是否符合规定的正则 rep = /\d+/; rep.test("asdfoiklfasdf89asdfasdf") # true rep = /^\d+$/; rep.test("asdfoiklfasdf89asdfasdf") # true exec - 阅读全文

posted @ 2018-08-21 15:58 你是不夜星空 阅读(1791) 评论(0) 推荐(0)

导航