src

模仿手机发送短信

◇◆丶佛笑我妖孽 提交于 2020-01-11 12:23:02
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>隐藏显示</title> <style> .header{ width:302px; height:40px; background:green; font-size:20px; margin-bottom: 0px; } .content{ width:300px; border:1px solid #333; background:#CCC; display: none; margin-top:0px; } .aa{ height: 200px; width: 200px; border:1px solid #ccc; } </style> </head> <script type="text/javascript" src="js/jquery-1.12.1.js"></script> <script type="text/javascript"> // $(function (){ //

angular7 img src问题

六眼飞鱼酱① 提交于 2020-01-11 09:56:05
angular图片问题问题 可以使用下面的写法 1.ts文件 imgUrl = './assets/images/img.jpg' 2.html文件 < img [src] = " imgUrl " /> < img src = {{imgUrl}} /> < img src = " ./assets/images/img.jpg " /> 来源: CSDN 作者: banana_013 链接: https://blog.csdn.net/qq_36620379/article/details/103793157

python第十七天

ぐ巨炮叔叔 提交于 2020-01-10 22:55:59
python第十七天 软件开发规范 bin starts 启动文件 conf settings 配置文件 core src 主逻辑课 db register 文本数据 lib common 公共组件:装饰器,日志函数 log access.log 日志文件 import sys import os print(__file__)#获取本文件路径 print(os.path.dirname(__file__))获取本文件父路径 print(os.path.dirname(os.path.dirname(__file__)))+1 # import src # 直接引用不到,他不在内存,内置,sys.path ''' # 这么做虽然实现,但是有问题: # 1, 项目中的这些py文件,肯定会互相引用,src 引用 settings, src 引用 commom.py..... import sys sys.path.append(r'D:\python_22\day18\blog\core') sys.path.append(r'D:\python_22\day18\blog\conf') sys.path.append(r'D:\python_22\day18\blog\lib') ....... print(sys.path) import src src.run() #

see if src of img exists

北城余情 提交于 2020-01-09 12:41:13
问题 when I place an img tag I create the src attribute dynamically. Is there a way of testing if the src (path where the image is located) actually exists with javascript in order to avoid getting: 回答1: You can use the error event: var im = document.getElementById('imageID'); // or select based on classes im.onerror = function(){ // image not found or change src like this as default image: im.src = 'new path'; }; Inline Version: <img src="whatever" onError="this.src = 'new default path'" /> Or

see if src of img exists

随声附和 提交于 2020-01-09 12:40:58
问题 when I place an img tag I create the src attribute dynamically. Is there a way of testing if the src (path where the image is located) actually exists with javascript in order to avoid getting: 回答1: You can use the error event: var im = document.getElementById('imageID'); // or select based on classes im.onerror = function(){ // image not found or change src like this as default image: im.src = 'new path'; }; Inline Version: <img src="whatever" onError="this.src = 'new default path'" /> Or

关于iframe标签的src属性

雨燕双飞 提交于 2020-01-09 00:49:08
iframe标签的src属性会发起一个get请求,这个不是检查在xhr里面看到的,直接看all,如果你看到xhr里面有post请求,并不是iframe的src能发送post请求,而是src请求回来的页面,里面有form表单等发起的post请求 来源: https://www.cnblogs.com/antyhouse/p/12169280.html

如何拿到iframe标签里面的src的内容,并且重新进行渲染

本小妞迷上赌 提交于 2020-01-09 00:48:31
<iframe width="100%" height="100%" seamless frameBorder="0" scrolling="no" :src='getSrc(item.frameLink)' > </iframe> 因为后台的直接返回的是iframe标签,不好去控制宽高 getSrc(item) { var srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i; if (item.match(srcReg)) { var newText = item.match(srcReg)[1] } else { var newText = '' } return newText } 来源: https://www.cnblogs.com/antyhouse/p/12169293.html

小程序瀑布流无限加载

白昼怎懂夜的黑 提交于 2020-01-08 04:26:06
由于想做成瀑布流,故一开始使用如下的方式: .waterfall-container { column-count: 2; column-gap: 30rpx; } 但是,由于这种 column-count:2 ,是由上往下排的,所以再加载新的一页的时候,原来在页首的会被顶到底部,导致整个逻辑是错误的。 故,需要修改一下页面的实现思路 1. 在页首加入预加载的图片的不显示的块,加载图片时,会触发事件, 2. 在事件处理 function 中,进行图片的分发,根据当前的两列的实际高度,分发到两列中。 具体实现: 在页首加上 display: none 的块,用于预加载图片。 <view style="display:none"> <image wx:for="{{prefetch_products.rows}}" data-id="{{item.id}}" data-image-src="{{item.cover}}" wx:for-item="item" src="{{item.cover}}" bindload="onImageLoad"></image> </view> JS: onImageLoad: function (e) { var oriHeight = e.detail.height, oriWidth = e.detail.width, scale =

Jquery基础(动画效果的轮播图特效)

[亡魂溺海] 提交于 2020-01-07 19:41:17
jquery文档准备的三种写法: $(document).ready(function() { }); $().ready(function() { }); $(function() { }); jquery 选择器 基本选择器 $('*') / $('.div') / $('div') / $('#first') / 多项选择器 $('#first, div, .second') 层级选择器 $('aside summary') //aside的子元素summary $('aside > details') //aside的直接子元素details $('summary + ul') //summary相邻的下一个兄弟元素ul $('summary ~ ul') //summary之后的所有兄弟元素ul 属性选择器 $('[class]') $('[class=tool]') $('[class!=tool]') //class不是tool $('[class^=tool_]') //tool_开头 $('[class$=vs]') // vs结束 $('[class*=vs]') //含有vs $('[type][src]') $('[class][class*=lang][class$=y]') 过滤器 $('details > p:first-child') $(

Find a src image value from an <a href> tag

可紊 提交于 2020-01-07 04:55:12
问题 I've been building an image gallery with pictures in the hundreds and I don't want them all to load on page load for obvious bandwidth issues. For starters, I put; <body onload="removeAttr("src")"> to prevent the pictures from loading which works... too well I'm afraid as it doesn't load my website header banner pic. Anyhow, my gallery is set up with a menu with each button representing a different image. The menu is displayed in this format; <ul id="menu"> <li><a href="#pic1">Title</a></li>