摘要: <!DOCTYPE html><html> <head> <title>Jquery复选框练习</title> <!-- 引入jQuery,引入你自己的jQuery文件 --> <script type="text/javascript" src="../scripts/jquery-1.7.2.j 阅读全文
posted @ 2018-04-01 22:04 安心牧羊人 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 如何使用jquery刷新当前页面 下面介绍全页面刷新方法:有时候可能会用到 window.location.reload()刷新当前页面. parent.location.reload()刷新父亲对象(用于框架) opener.location.reload()刷新父窗口对象(用于单开窗口) top 阅读全文
posted @ 2018-03-30 15:48 安心牧羊人 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <input type="text" value="" placeholder="请输入您的姓名" onblur="this.placeholder=(this.placeholder=='')?'请输入您的姓名':this.placeholder" onfocus="this.placeholde 阅读全文
posted @ 2018-03-30 15:44 安心牧羊人 阅读(616) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(function(){ $("button").c 阅读全文
posted @ 2018-03-29 18:59 安心牧羊人 阅读(13596) 评论(0) 推荐(0) 编辑
摘要: jquery获取自定义属性的值 //方法 1 <div id="text" value="黑哒哒的盟友"><div> jQuery取值: $("#text").attr("value"); //方法 2 <div id="text" value="123" data_obj="黑哒哒的盟友"><di 阅读全文
posted @ 2018-03-27 23:28 安心牧羊人 阅读(177) 评论(0) 推荐(0) 编辑
摘要: <style> .touch-item { font-size: 14px; display: flex; justify-content: space-between; border-bottom:1px solid #ccc; width: 100%; overflow: hidden}.con 阅读全文
posted @ 2018-03-24 01:58 安心牧羊人 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 在vue中我们如何引入jquery 1.在package.json里面的dependencies 加入“jquery”:“^3.2.1”, 图示 2. 终端输入 npm install jquery --save-dev (注意:jquery 一定要小写 不然会提示 Please use 'jque 阅读全文
posted @ 2018-03-18 21:39 安心牧羊人 阅读(152) 评论(0) 推荐(0) 编辑
摘要: vue.js 笔记安装vue 步骤1.npm install vue //安装vue2.npm install —global vue-cli //全局安装 vue-cli3.vue init webpack my-project //安装webpack 4.cd my-project //进入项目 阅读全文
posted @ 2018-03-18 19:23 安心牧羊人 阅读(1545) 评论(0) 推荐(0) 编辑
摘要: <!--垂直滚动,这里必须设置高度--> <scroll-view scroll-y="true" style="height: 200px"> <view style="background: red; width: 100px; height: 100px" ></view> <view sty 阅读全文
posted @ 2018-01-04 15:47 安心牧羊人 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: <style>.transactiondetails-box { width: 100%; height: 100%; overflow: hidden;}.transactiondetails-centent{ width: 100%; display: flex; justify-content 阅读全文
posted @ 2017-12-25 11:23 安心牧羊人 阅读(956) 评论(0) 推荐(0) 编辑