重複加載js包 解決方法 <script type="text/javascript"> window.jQuery || document.write("<script src='./../static/libs/jquery/jquery-3.2.1.min.js?ver=1.1'&g...
vue 模板使用 Vue.component('lhq1', { props:['list','checked','userid'], data:function(){ return{ check:[], } }, template: '<div>\ ...
vue組件生命週期 < !doctype html> <html> <head> <meta charset="UTF-8"> <title>生命周期</title> <script src="js/vue.js"&...
雪碧圖使用方法 <div style=" display:inline-block; background: url(../images/2.png) no-repeat -20px -100px; background-repeat: no-repeat; width:20px...
iview input框输入内容验证 ruleValidate: { pwd: [{ required: true,//是否不能为空 message: '密碼不能爲空',//秀出的信息 trigger: 'blur'//触...
iview用到的vue.js /*! * Vue.js v2.5.13 * (c) 2014-2017 Evan You * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"...
sublime看的.vue 文件高亮 http://blog.csdn.net/zhangwenwu2/article/details/72236609 转载于:https://my.oschina.net/u/3669210...
倒計時算出時分秒 JS var hours = parseInt(7099/(60*60)); var minutes = parseInt((7099-hours*60*60)/60); var second...
获取鼠标移动到的元素的当前位置 $('.step li').mouseenter(function(event) { // var url = $(this).find("a").eq(1).text(); // console.log($('.step li').index()) ...
js倒计时 //3秒倒計時loginCountdown:function(){ // console.log(); $('#finish_second').text(_this.data.loginCountdown); if (_this.data.loginCountdo...
ajax的post请求方法 var phone = $('#userPhone').val(); var extension = $('#userLockPhone').val(); var sex=$('input:radio[name="sex"]:checked').val(); var ...
ajax的get方法请求 getTableDataStatus: function (callback) {$.ajax({ type: 'GET', dataType: "json", url:,//+'&simulation_employee_no=...
鼠標移動事件多次觸發解决办法 项目中用到鼠标移动事件mouseover, 发现鼠标在控件上来回移动的时候会多次触发,mouseout也是 百度后发现mouseover和mouseout只要鼠标在控件上来回移动会多次触发,如果不想多次触发可以用mouseenter和mouseleave代替.(mouseenter代替mou...
版本更新相关心得 版本更新 需求是每次登进主页面都提交一次版本名到服务器,由服务器判断是否应该更新,如果需要更新会返回true并返回需要更新所用到的json数据(更新内容,新版本名称等),如果不用就会返回false。 //检查版本更新,这里用得是Xutils提交数据请求服务器回调public static...
阿里巴巴的JSON解析器起步 起步只需要在编译的文件里面加两行代码 compile 'com.alibaba:fastjson:1.2.37'compile 'com.alibaba:fastjson:1.1.62.android' 重新编译一下就行啦 ...
fragment的基础博客 http://blog.csdn.net/lmj623565791/article/details/37970961 转载于:https://my.oschina.net/u/366921...
popupwindow弹窗 private void showPopupWindow() { //设置窗口的形状 Rect frame = new Rect(); //先拿到窗口,然后拿到装饰的视图,然后拿到可以显示的形状 getWindow().getD...