tip

A small tip to explore how to call a method of a control

前提是你 提交于 2019-11-29 15:54:22
Created by Jerry Wang, last modified on Mar 20, 2015 一个很小的tip:比如我想把一个table里的每个column 设置成宽度自适应的,需要知道应该call哪个方法来实现。 [外链图片转存失败(img-zsZYaNSR-1568514504160)(https://user-images.githubusercontent.com/5669954/27319091-09e05484-5590-11e7-9566-d5418a44d2b9.png)] 一种办法是查help 文档,另一种办法是在debugger里研究: 根据经验这种API一般naming convention都是set: 根据经验定位到应该call setAutoResizable这个方法。下一个问题就是这个方法到底应该传什么参数进去。 直接在debugger里执行方法getMetadata, 展开返回的结果: 这里说明这个set方法应该传一个boolean进去: 要获取更多Jerry的原创文章,请关注公众号"汪子熙": 来源: https://blog.csdn.net/i042416/article/details/100848775

浏览器使用小tip

梦想与她 提交于 2019-11-29 00:23:17
谷歌浏览器截取长图 很多网页长图单个页面截不下来,那么需要如何解决? 首先,在谷歌浏览器chrome中打开需要截图的网页,等待需要截图的网页打开完毕,然后按F12 打开开发者工具,然后按组合键 Ctrl+Shift+P 调出谷歌浏览器chrome长截图需要的面板,然后输入 full ,这是时候就会看到下面出现 Capture full size screenshot ,点击这行文字,就可以截取当前整张网页了。 tip来自: https://www.xxorg.com/archives/5220 来源: https://www.cnblogs.com/huandada/p/11434990.html

5.订单问题

蓝咒 提交于 2019-11-28 20:22:21
Description Rahul and Ankit are the only two waiters in Royal Restaurant. Today, the restaurant received N orders. The amount of tips may differ when handled by different waiters, if Rahul takes the ith order, he would be tipped Ai rupees and if Ankit takes this order, the tip would be Bi rupees.In order to maximize the total tip value they decided to distribute the order among themselves. One order will be handled by one person only. Also, due to time constraints Rahul cannot take more than X orders and Ankit cannot take more than Y orders. It is guaranteed that X + Y is greater than or equal

两个gif图片动画效果

谁说我不能喝 提交于 2019-11-28 18:25:28
<div className="uploading-animation-tip-wrap"> <img src={require('~/shared/assets/image/slide-uploading-animation-file-300-300.gif')} alt="" className="uploading-tip-animation-file" /> <img src={require('~/shared/assets/image/slide-uploading-animation-progress-wave-300-300.gif')} alt="" className="uploading-tip-animation-progress" /> </div> .uploading-animation-tip-wrap { width: 66px; height: 66px; background-color: #f5f5f5; border-radius: 50%; position: relative; .uploading-tip-animation-file { width: 66px; position: absolute; top: 0; left: 0; z-index: 2; } .uploading-tip-animation-progress {

bom-删除提示

五迷三道 提交于 2019-11-28 18:01:12
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> body { margin: 0; padding: 0; } #tip { width: 150px; height: 30px; background-color: lightgray; opacity: 0.5; margin:200px auto; padding-top: 5px; text-align: center; color: red; display: none; } </style> <script> onload = function () { // 当页面的所有元素创建完成, 等待外部文件下载完毕才会执行 var btn = document.getElementById('btn'); btn.onclick = function () { // 删除操作 // 显示删除成功的tip var tip = document.getElementById('tip'); tip.style.display = 'block'; // 隔3秒钟之后让tip隐藏 setTimeout(function () { tip.style.display = 'none'; },

easyui for jquery之tooltip

雨燕双飞 提交于 2019-11-28 05:20:36
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Ajax Tooltip - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../../themes/icon.css"> <link rel="stylesheet" type="text/css" href="../demo.css"> <script type="text/javascript" src="../../jquery.min.js"></script> <script type="text/javascript" src="../../jquery.easyui.min.js"></script> </head> <body> <h2>Ajax Tooltip</h2> <p>The tooltip content can be loaded via AJAX.</p> <div style="margin:20px 0;"></div> <a href="#" data-tip="This

git的一些tip

老子叫甜甜 提交于 2019-11-27 12:11:57
取消跟踪:git update-index –assume-unchanged path/to/file 跟踪回来,执行:git update-index –no-assume-unchanged path/to/file 不知道git add行不行 撤销本地更改git reset --hard 还有一种可以暂存本地更改的 来源: https://www.cnblogs.com/dablyo/p/11362170.html

“真”pandas“假”sql

心不动则不痛 提交于 2019-11-27 05:05:15
这篇博客利用了 pandas 对数据像 sql 一样去处理。 读取测试数据 import pandas as pd import numpy as np url = 'https://raw.github.com/pandas-dev/pandas/master/pandas/tests/data/tips.csv' tips = pd.read_csv(url) # 读取数据 tips.head() 测试数据的前5行如下: SELECT(选择语句) SQL语句: SELECT total_bill, tip, smoker, time FROM tips LIMIT 5; Python语句: tips[['total_bill', 'tip', 'smoker', 'time']].head(5) UPDATE(更新语句) SQL语句: UPDATE tips SET tip = tip*2 WHERE tip < 2; Python语句: tips.loc[tips['tip'] < 2, 'tip'] *= 2 DELETE(删除语句) SQL语句: DELETE FROM tips WHERE tip > 9; Python语句: tips = tips.loc[tips['tip'] <= 9] WHERE (条件) SQL语句: SELECT * FROM tips