摘要: webview将链接不同的子页面地址,div模式将所有子页面代码写入一个页面。小记。 阅读全文
posted @ 2019-12-09 16:07 绯颜旧雨 阅读(182) 评论(0) 推荐(0) 编辑
摘要: mui.plusReady(function() { var topoffset = '45px'; var header = document.getElementById('heardermylab'); //在head处加上id='heardermylab' console.log(plus. 阅读全文
posted @ 2019-12-09 15:58 绯颜旧雨 阅读(773) 评论(0) 推荐(0) 编辑
摘要: A页面: //打开新闻详情 mui.openWindow({ id: 'Inspeaction', url: 'Inspeaction.html', extras: { tid: id }, createNew: false }); B:页面: var ide = plus.webview.curr 阅读全文
posted @ 2019-12-09 15:56 绯颜旧雨 阅读(367) 评论(0) 推荐(0) 编辑
摘要: //自定义搜索 function Seach(map) { // //自定义控件 function ZoomControl() { this.defaultAnchor = BMAP_ANCHOR_TOP_RIGHT; this.defaultOffset = new BMap.Size(30, 1 阅读全文
posted @ 2019-12-02 10:25 绯颜旧雨 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 添加触摸事件 //触摸事件(解决点击事件无效)--触摸开始,开启拖拽map.addEventListener('touchmove', function(e) {map.enableDragging();});//触摸结束始,禁止拖拽map.addEventListener("touchend", 阅读全文
posted @ 2019-12-02 10:21 绯颜旧雨 阅读(1551) 评论(0) 推荐(0) 编辑
摘要: var map = new BMap.Map("allmap"); // 创建Map实例 map.centerAndZoom(new BMap.Point(x, y), h); // 初始化地图,设置中心点坐标和地图级别 //添加地图类型控件 var top_left = new BMap.MapT 阅读全文
posted @ 2019-12-02 10:20 绯颜旧雨 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 使用escape("王五")进行编码 //函数说明:https://www.w3school.com.cn/jsref/jsref_escape.asp 阅读全文
posted @ 2019-12-02 10:18 绯颜旧雨 阅读(187) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> if (!Function.prototype.bind) { Function.prototype.bind = function (oThis) { if (typeof this !== "function") { throw n 阅读全文
posted @ 2019-11-26 13:02 绯颜旧雨 阅读(212) 评论(0) 推荐(0) 编辑
摘要: iview官网 :https://www.iviewui.com/components/checkbox 引入js文件及css文件: <script src="https://vuejs.org/js/vue.min.js"></script> <link rel="stylesheet" href 阅读全文
posted @ 2019-09-20 10:22 绯颜旧雨 阅读(515) 评论(0) 推荐(0) 编辑
摘要: /** * @param {起始行} a * @param {起始列} b * @param {复制到行} c * @param {复制到列} d * @param {复制多少行} e * @param {复制多少列} f * @param {添加行循环次数} g * @param {要复制的she 阅读全文
posted @ 2019-04-22 15:33 绯颜旧雨 阅读(1052) 评论(0) 推荐(0) 编辑