html上如何在一个button的右上方加一个可以删除该button的x,并且可以有alert确认是否删除

想要做到的样式

图片说明

当鼠标放在button上时,出现关闭按钮,点击关闭按钮时,弹出提示

图片说明

前端小白,跪求大神解答。。。。

4个回答

按钮需要写在div或者其他容器标签里面,添加相对定位,关闭也是一个按钮或者添加onclick的其他标签,加上绝对定位,类似这样:

<div id="aaa" style="float: left; position:relative;">
    <input type="button" value="按钮" />
    <input type="button" value="×" style="position: absolute;">
</div>

关闭的那个按钮样式写成display:none; 另加个 父级div:hover ×按钮{display: block;} 样式,
然后给那个删除按钮加点击事件,大体方法内容:

 var state = confirm("是否删除?");
 if(state){
 $("#aaa").remove();
 }else{
 return false;}
Skr_Eric
Skr-Eric 感谢解决思路,虽然我不是这么解决的。。。
9 个月之前 回复

按钮用div实现,删除图标用相对定位。

f12打开控制台,找到那个x,看它是否有什么id,或者唯一的name或class属性,然后使用

 $(document).on("click", "#id,name,或者class属性", function () {
                         confirm("是否删除?");
        });

哪个×可以用after伪元素 定位到button 的右上角,点击×获取到button 的dom 然后confirm判断一下 确认就remove() button

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
C#winfrom中button按钮的使用问题

我在Panel中建立了32个button,现在想要实现点击任意一个按钮都能识别是哪个按钮,并且把button的name显示出来(能够显示name的某个字母最好)(不要在32个button Click事件中一个个去写)

Push Button Lock

The Frobozz Magic Lock Company is in the business of manufacturing push button style combination door locks. A push button door lock consists of a number of push buttons B, (1 <= B <= 11), labeled ��1�� through ��B��. The lock is opened by pressing the correct sequence of button combinations and then turning the doorknob. If the sequence of presses is correct, the door magically opens. A combination consists of 1 or more buttons being pressed simultaneously. A sequence consists of a series of combinations. A sequence must have at least one combination. Once a button has been used in a combination, it may not be used again in the same sequence. In addition, it is not necessary to use all the buttons in a sequence. For example, for B=8: (1-2-3)(4)(7-8) is a valid sequence with 3 combinations (1-2-3), (4), and (7-8). Note that buttons 5 and 6 are not used in this sequence. (1-2-3)(2-4)(5-6) is not a valid sequence, since button 2 appears in 2 combinations (1-2-3) and (2-4). The CEO of Frobozz, J. Pierpont Flathead, wants you to write a program that determines the number of valid sequences possible for given values of B. The program must be able to process a list of lock orders (datasets) from customers and generate a report showing the order number, the value of B, and the number of valid sequences possible. This list will always contain at least one dataset, but no more than 100 datasets. Input The first line of input contains a single integer N, (1 <= N <= 100), representing the number of datasets that follow. Each dataset consists of a single line of data containing a single integer B, which is the number of buttons for the lock. Output For each dataset, display the dataset number, a blank, the value B, a blank, and the number of valid sequences. Sample Input 3 3 4 3 Sample Output 1 3 25 2 4 149 3 3 25

iframe页面传值,子页面触发Button的click事件后,页面传的值就丢了

父页面A.aspx中嵌套了一个iframe子页面B.aspx,点击父页面的treeview节点,通过js事件将选中的节点值传给了B页面,并赋值给了B页面的一个Lable,B页面会根据lable从数据库加载相应的数据,这都没有问题,但是对B页面进行删除,查询等button执行click事件后,执行成功了,B页面也实时更新显示了操作后的数据,但此时B也面的Lable的值也没了,我想要B页面执行button的click事件后,lable值依然是A页面选中的节点值,这个该怎么实现。 请大神指点!! 页面中butt按钮 <asp:Button ID="BtnSearch" runat="server" OnClick="PagerBtnCommand_OnClick" Text="搜索" style="margin:10px"/> 后台: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { showNumber(default)://绑定数据源Gridview并显示,default首次加载默认sql,查找全部 } } //button的click事件 protected void PagerBtnCommand_OnClick(object sender, EventArgs e) { showNumber(参数是查询条件语句); }

点击按钮时实现调用方法

有一个CustomCell,想实现在点击它所在按钮时会发出警报。不知道怎么访问这个方法? @interface CustomCell : UITableViewCell { IBOutlet UIImageView *imageViewCell; IBOutlet UILabel *theTitle; IBOutlet UIButton*imageButton; } @property(nonatomic,retain) IBOutlet UIButton*imageButton; @property(nonatomic,retain) UIImageView *imageViewCell; @property(nonatomic,retain) UILabel *theTitle; -(IBAction)imageButtonAction; @end @implementation CustomCell @synthesize imageViewCell; @synthesize theTitle; -(IBAction)imageButtonAction{ } 不是要在这里调用方法,我希望的是方法在使用CustomCell中类中。

C#不能点击其他窗口上已知句柄的按钮

我想用SendMessage向"4GB Patch"这个对话框里面的"OK"按钮发送鼠标单击的消息,但是现在的情况是窗口和按钮的句柄都正确,但是按钮就是无法被按下,请各位大神看看是哪里出了问题。感谢! PS.打开exe程序以后会弹出一个文件选择框,选择完文件以后才会弹出"4GB Patch"的对话框。虽然按道理说可以用遍历打开的程序然后关闭,但是我觉得效率可能在大部分情况下都没有查找窗口句柄来得快,这个程序只是用来测试的,不是我最终的程序,所以不要纠结于实用性和其他代码设计的合理性。 ``` public partial class Form1 : Form { public const int WM_LBUTTONDOWN = 0x0201; public const int WM_LBUTTONUP = 0x0202; [DllImport("User32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("User32.dll", EntryPoint = "SendMessage")] private static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, string lParam); [DllImport("User32.dll")] public static extern IntPtr FindWindowEx(IntPtr parent, IntPtr childe, string strclass, string FrmText); [DllImport("User32.dll", EntryPoint = "SetForegroundWindow")] public static extern bool SetForegroundWindow(IntPtr hWnd); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Process process = new Process(); process.StartInfo.FileName = "C:/Users/yangy/Desktop/4gb_patch.exe"; process.Start(); Process process = new Process(); process.StartInfo.FileName = "C:/Users/yangy/Desktop/4gb_patch.exe"; process.Start(); for (int i = 0; i < 1;) { if (FindWindow(null, "4GB Patch") != null) { IntPtr window = FindWindow(null, "4GB Patch"); IntPtr button = FindWindowEx(window, IntPtr.Zero, "Button", "OK"); SetForegroundWindow(window); SetForegroundWindow(button); SendMessage(button, WM_LBUTTONDOWN, IntPtr.Zero, null); SendMessage(button, WM_LBUTTONUP, IntPtr.Zero, null); } else { i = 2; } } } } ```

C#操作网页问题,关于直接调用网页按钮点击事件所调用的函数

想做一个批量删除淘宝商品的工具 平时是通过网页上手动去选择要删除的商品,然后点击网页上的删除按钮来删除 原本是想模拟点击网页删除按钮,不过感觉这种方式要频繁进行翻页删除操作,比较慢 想到一个思路是:点击网页上的删除按钮,应该是调用了一个什么函数,才执行的删除,而且附带了一些参数,可是怎么找也没找到提交的入口在哪 希望大神帮忙指定迷津 下面图片中用箭头指出了要操作的元素,其中包含向文本框中填值,点击按钮等 ![图片说明](https://img-ask.csdn.net/upload/201706/29/1498736622_65515.jpg)

一个很简单的程序,一直报空指针错误,刚开始学,百度自己试了很久都改不出来,求大神指点

``` package com.sample.test02; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.Window; import android.widget.Button; import android.widget.Toast; public class FirstB extends Activity{ protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CONTEXT_MENU); setContentView(com.sample.test02.R.layout.first_layout); Button butt=(Button)findViewById(com.sample.test02.R.id.button_1); butt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Toast.makeText(FirstB.this,"@+string/bt",Toast.LENGTH_SHORT).show(); } }); } ``` 报 butt.setOnClickListener(new View.OnClickListener() { 这一行空指针错误

这个js函数我该怎么写

function choicebutton(coverbutton,cover,up,down,butt){ var flag=true; $(coverbutton).on('click',function(){ if(flag && coverbutton=='.scene-button'){ $(cover).css('display','block'); $(up).css('display','inline-block'); $(down).css('display','none'); $(butt).css('background-color','#f4fbfb'); alert('.scene-button'); flag=false; }else{ $(cover).css('display','none'); $(up).css('display','none'); $(down).css('display','block'); $(butt).css('background-color','white'); flag=true; }; if(flag && coverbutton=='.entity-button'){ $(cover).css('display','block'); $(up).css('display','inline-block'); $(down).css('display','none'); $(butt).css('background-color','#f4fbfb'); alert('.entity-button'); flag=false; }else{ $(cover).css('display','none'); $(up).css('display','none'); $(down).css('display','block'); $(butt).css('background-color','white'); flag=true; }; if(flag && coverbutton=='.admin-button'){ $(cover).css('display','block'); $(up).css('display','inline-block'); $(down).css('display','none'); $(butt).css('background-color','#f4fbfb'); alert('.admin-button'); flag=false; }else{ $(cover).css('display','none'); $(up).css('display','none'); $(down).css('display','block'); $(butt).css('background-color','white'); flag=true; } }); };

保存TCPDF生成的文件

<div class="post-text" itemprop="text"> <p>I'd like to generate and open PDF when user clicks on a button. Here is my code so far:</p> <p>index.php:</p> <pre><code>&lt;/html&gt; &lt;head&gt; &lt;script&gt; $('.cmd_butt').click(function() { $.ajax({ url: 'create_pdf.php', data: {id: $(this).attr('order_id'), name: $(this).attr('name')}, type: 'post' }); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;button class="cmd_butt" order_id="250" name="pdf_but"&gt;Download PDF&lt;/button&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>create_pdf.php:</p> <pre><code>&lt;?php //header('Content-type: application/pdf') header("Content-type: application-download"); //header("Content-Length: $size"); header("Content-Disposition: attachment; filename=MyPDF.pdf"); header("Content-Transfer-Encoding: binary"); require_once('tcpdf/config/lang/eng.php'); require_once('tcpdf/tcpdf.php'); // create new PDF document // some code // some code //$pdf-&gt;Output('test.pdf', 'I'); //$pdf-&gt;Output('test.pdf', 'FD'); $pdf-&gt;Output(); ?&gt; </code></pre> <p>How can I open a new window with generated PDF? Or notify user with "save as" dialog to download this PDF? I've tried different Output() combinations but none of them worked.</p> </div>

C#如何获取计算器按钮1的句柄,并进行点击操作,请教一下 谢谢

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Diagnostics; using System.Threading.Tasks; using System.Threading; namespace ConsoleApplication1 { class Program { [DllImport("user32.dll", EntryPoint = "FindWindow", CharSet = CharSet.Auto)] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll", EntryPoint = "FindWindowEx", CharSet = CharSet.Auto)] extern static IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); [DllImport("User32.dll", EntryPoint = "SendMessage")] private static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, string lParam); [STAThread] static void Main(string[] args) { string path = "C:\\WINDOWS\\system32\\calc.exe"; Process p = Process.Start(path); if (p == null) Console.WriteLine("Warning:process may already exist"); Console.WriteLine("Finding main window handle"); IntPtr mainWindows = FindMainWindowHandle("计算器", 100, 25); Console.WriteLine("Handle to main window is " + mainWindows); //有名字控件句柄 Console.WriteLine("Findding handle to button1"); IntPtr butt = FindWindowEx(mainWindows, IntPtr.Zero, null, "Backspace");//这里的1是,计算器上名字为1的按钮 if (butt == IntPtr.Zero) throw new Exception("Unable to find button1"); else Console.WriteLine("Handle to button1 is " + butt); SendMessage(mainWindows, 0X101, butt, null); //没有名字或者重名控件 //Console.WriteLine("Findding handle to listbox1"); //IntPtr lb = FindWindowByIndex(mwh, 3); //if (lb == IntPtr.Zero) // throw new Exception("Unable to find listbox1"); //else // Console.WriteLine("Handle to listbox1 is " + lb); } //通过索引查找相应控件句柄 static IntPtr FindWindowByIndex(IntPtr hwndParent, int index) { if (index == 0) { return hwndParent; } else { int ct = 0; IntPtr result = IntPtr.Zero; do { result = FindWindowEx(hwndParent, result, null, null); if (result != IntPtr.Zero) { ++ct; } } while (ct < index && result != IntPtr.Zero); return result; } } //获得待测程序主窗体句柄 private static IntPtr FindMainWindowHandle(string caption, int delay, int maxTries) { IntPtr mwh = IntPtr.Zero; bool formFound = false; int attempts = 0; while (!formFound && attempts < maxTries) { if (mwh == IntPtr.Zero) { Console.WriteLine("Form not yet found"); Thread.Sleep(delay); ++attempts; mwh = FindWindow(null, caption); } else { Console.WriteLine("Form has been found"); formFound = true; } } if (mwh == IntPtr.Zero) throw new Exception("Could not find main window"); else return mwh; } } }

css加了:hover出现字体乱位

<a>未加:hover ![图片说明](https://img-ask.csdn.net/upload/201907/30/1564490980_59816.png) <a>加了:hover ![图片说明](https://img-ask.csdn.net/upload/201907/30/1564491036_535013.png) ``` <!DOCTYPE html> <html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> *{ margin: 0; padding: 0; } #img{/*背景图*/ background-image: url(1.jpeg); } .log{/*文本框*/ width: 300px; height: 40px; margin: 15px 10px 10px 10px;/*上 右 下 左,两个文本框的边距*/ text-indent: 10px; } .box{/*盒子*/ width: 399px; height: 279px; border-radius: 4px; border: 5px solid green; border-color: transparent; padding: 25px; margin: 25px; position: absolute; left: 780px; top: 150px; background-color: white; } .butt{/*登录按钮*/ width: 300px; height: 50px; margin: 10px 10px 10px 10px; background-color: rgba(134,206,47,1.00); } a:hover{ position: absolute; left: 368px; top: 295px; font-size: 15px; text-decoration:none; /*鼠标放上去有下划线*/ } </style> </head> <body id="img"> <div> <div style="text-align: center"> <h1>欢迎你的到来</h1> <div class="box"> <form action="" method="post"> <input type="text" name="ID" placeholder="学号" class="log"><br> <input type="text" name="name" placeholder=" 姓名" class="log"><br> <input type="submit" value="登录" class="butt"> </form> <div> <a href="#">意见反馈</a> </div> </div> </div> </div> </body> </html> ```

asp.net 导出word文档问题

![图片说明](https://img-ask.csdn.net/upload/201711/21/1511259396_233589.png)pload/201711/21/1511259339_992470.png) 前台: <form id="form1" runat="server"><asp:Button ID="Button1" style="display:block;margin:auto;" runat="server" Text="生成 word文档" onclick="Butt on1_Click" /></form> 后台: HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ClearContent(); HttpContext.Current.Response.ClearHeaders(); HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode("报名表.doc", System.Text.Encoding.UTF8)); HttpContext.Current.Response.ContentType = "application/ms-word"; HttpContext.Current.Response.Charset = "UTF-8"; HttpContext.Current.Response.HeaderEncoding = System.Text.Encoding.UTF8; HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF8; //关闭控件的视图状态 Page.EnableViewState = false; //初始化HtmlWriter System.IO.StringWriter writer = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWriter = new System.Web.UI.HtmlTextWriter(writer); Page.RenderControl(htmlWriter); //输出 string pageHtml = writer.ToString(); int startIndex = pageHtml.IndexOf("<html"); int endIndex = pageHtml.LastIndexOf("</div>"); int lenth = endIndex - startIndex; pageHtml = pageHtml.Substring(startIndex, lenth); // pageHtml = pageHtml.Remove(pageHtml.LastIndexOf("<div class=\"flowbar\">")); HttpContext.Current.Response.Write(pageHtml.ToString()); HttpContext.Current.Response.Flush(); HttpContext.Current.Response.End(); 问题:1 为什么会出现自动换行; 2 怎么会出现窗体?

从`SimpleXMLElement Object`中删除节点

<div class="post-text" itemprop="text"> <p><code>XMl</code> like below,</p> <pre><code>&lt;text font-family="Helvetica" font-size="25" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" &gt; &lt;tspan x="-100" y="7.87" style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: ; opacity: 1;"&gt;t&lt;/tspan&gt; &lt;tspan x="-93" y="7.87" style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: ; opacity: 1;"&gt;e&lt;/tspan&gt; &lt;tspan x="-79" y="7.87" style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: ; opacity: 1;"&gt;s&lt;/tspan&gt; &lt;tspan x="-66" y="7.87" style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: ; opacity: 1;"&gt;t&lt;/tspan&gt; &lt;/text&gt; </code></pre> <p>What i want to do is, keep first <code>tspan</code> and append all other <code>tspan</code> value on first <code>tspan</code> and remove all other.</p> <p>He is the desired output,</p> <pre><code>&lt;text font-family="Helvetica" font-size="25" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" &gt; &lt;tspan x="-100" y="7.87" style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: ; opacity: 1;"&gt;test&lt;/tspan&gt; &lt;/text&gt; </code></pre> <p>For this what i did,</p> <pre><code>$previousValue = null; $first = $text-&gt;tspan[0]; foreach($text-&gt;tspan as $k2=&gt;$span){ if(is_object($span)){ $style = $span-&gt;attributes()-&gt;style; if($previousValue) { if(strcmp($style,$previousValue) === 0){ $first.=$span; //$dom=dom_import_simplexml($span); $dom-&gt;parentNode-&gt;removeChild($dom); } } $previousValue = $style; } } $text-&gt;tspan[0] = $first; </code></pre> <p>That will generate first node perfect, but not removing other nodes proper. I tried this even,</p> <pre><code>$dom=dom_import_simplexml($span); $dom-&gt;parentNode-&gt;removeChild($dom); </code></pre> <p>But it just removing 1 node and break the loop then. Dont know what happening there. Am i doing any mistake there?</p> </div>

js实现购物车简单功能怎么相加数量?

![图片说明](https://img-ask.csdn.net/upload/201911/15/1573795995_750915.jpg) 我的input文本框里的值怎试都无法进行相加,数据类型转换也不行, 我就想知道怎么把多个文本框的值赋值到进行循环相加 <html> <head> <meta charset="utf-8" /> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> <script type="text/javascript"> var ckok=document.getElementsByName("ck"); function btn1(){ for(var i=0; i<ckok.length;i++){ if(ckok[i].checked){ ckok[i].checked=false; }else{ ckok[i].checked=true; } } } </script> <style> nav{ margin-bottom: 20px; background: salmon; } h2,h5{ text-align: center; font-family: "微软雅黑"; } .ck input{ display: block; width: 30px; height: 30px; margin: auto auto; } .butt input{ display: block; margin: auto auto; width: 45px; height: 30px; border-radius: 10px; } .butt{ padding-bottom: 9px; } header{ border-bottom: 1px solid darkgrey; padding-bottom: 5px; padding-top: 5px; padding-left: 5px; padding-right: 5px; border-left: 1px solid darkgray; border-right: 1px solid darkgray; } </style> </head> <body> <div class="container"> <div class="row"> <div class="col-lg-offset-2 col-lg-8 col-sm-offset-2 col-sm-8 col-xs-offset-2 col-xs-8"> <nav class="row"> <h2>购物车</h2> </nav> <header class="row" style="background: skyblue;"> <div class="col-lg-3 butt"> <input type="button" name="" id="" value="全选" onclick="btn1()"/> </div> <div class="col-lg-3"> <h5>商品</h5> </div> <div class="col-lg-3"> <h5>件数</h5> </div> <div class="col-lg-3"> <h5>金额</h5> </div> </header> <header class="row"> <div class="col-lg-3 ck"> <input type="checkbox" name="ck" id="" value="0" onchange="ckb();" /> </div> <div class="col-lg-3"> <h5>裤子</h5> </div> <div class="col-lg-3"> <input type="number" name="m" id="Jian" value="1" class="form-control" onchange="num(this)"/> <!--<div class="row"> <input type="button" name="butt" id="butt" value="-" onclick="btnbutt()" class="col-lg-2"/> <input type="text" name="text" id="text" class="col-lg-6"/> <input type="button" name="butt" id="butt" value="+" onclick="btnbutt()" class="col-lg-2"/> </div>--> </div> <div class="col-lg-3"> <h5>250</h5> </div> </header> <header class="row"> <div class="col-lg-3 ck"> <input type="checkbox" name="ck" id="" value="1" onchange="ckb();" /> </div> <div class="col-lg-3"> <h5>袜子</h5> </div> <div class="col-lg-3"> <input type="number" name="m" id="Jian" value="1" class="form-control" onchange="num(this)"/> </div> <div class="col-lg-3"> <h5>25</h5> </div> </header> <header class="row"> <div class="col-lg-3 ck"> <input type="checkbox" name="ck" id="" value="2" onchange="ckb();" /> </div> <div class="col-lg-3"> <h5>帽子</h5> </div> <div class="col-lg-3"> <input type="number" name="m" id="Jian" value="1" class="form-control" onchange="num(this)"/> </div> <div class="col-lg-3"> <h5>222</h5> </div> </header> <header class="row"> <div class="col-lg-3 ck"> <input type="checkbox" name="ck" id="" value="3" onchange="ckb();" /> </div> <div class="col-lg-3"> <h5>鞋子</h5> </div> <div class="col-lg-3"> <input type="number" name="m" id="Jian" value="1" class="form-control" onchange="num(this)"/> </div> <div class="col-lg-3"> <h5>854</h5> </div> </header> <header class="row"> <div class="col-lg-3 ck"> <input type="checkbox" name="ck" id="" value="4" onchange="ckb();" /> </div> <div class="col-lg-3"> <h5>儿子</h5> </div> <div class="col-lg-3"> <input type="number" name="m" id="Jian" value="1" class="form-control" onchange="num(this)"/> </div> <div class="col-lg-3"> <h5>95</h5> </div> </header> <footer class="row" style="display: block; text-align: center;"> <p class="form-control" style="background: salmon;"> 总件数:&nbsp; &nbsp; <span id="span1" style="color: red;"></span> &nbsp; &nbsp;件 </p> </footer> <footer class="row" style="display: block; text-align: center;"> <p class="form-control" style="background: salmon;"> 总金额 :&nbsp; &nbsp; <span id="span2" style="color: red;"></span> &nbsp; &nbsp;元 </p> </footer> </div> </div> </div> </body> </html>

这个js是不是有语法错误?循环里面的东西在运行的时候没有执行,求大佬指点。

如题, 我想在一个Chart里面画出三个波形图,就将三个波形的数据都放在一个数组myDatasets里面。然后再赋值给Chart,但运行的时候发现整个循环里面所有的东西都没运行,包括 ``` console.log ``` 也没运行,但控制台又没报错,实在一头雾水,是不是我语法哪里有问题?求大佬帮帮忙QAQ 这是我整个函数↓ ``` function drawWaveform(datas){ console.log("绘制开始。。。"); var lineChart = $("#waveform"); console.log(datas); var xs=[]; var allYs=[]; var myDatasets=[]; var ys=[]; var k=0; for(;k<datas.length;k++){ //【从这里开始就没运行了】 console.log(k); var points=datas[k].points; console.log(points); for(var i = 0;i<points.length;i++){ if(i==0){ xs.push(points[i].x); } ys.push(points[i].y); } allYs.push(ys); var color=""; if(datas[k].phrase=="A"){ color="#FFD700";//gold(yellow) var curDataset={ label: datas[k].phrase, fill: false, lineTension: 0.1, backgroundColor: "#fff", borderColor: color, borderCapStyle: 'butt', borderDash: [], borderDashOffset: 0.0, borderJoinStyle: 'miter', pointBorderColor: "#fff",//white pointBackgroundColor: "#141E41",//black pointBorderWidth: 1, pointHoverRadius: 10, pointHoverBackgroundColor: "#FC2055",//red pointHoverBorderColor: "#fff", pointHoverBorderWidth: 1, pointRadius: 0, pointHitRadius: 10, data: ys, spanGaps: false }; this.myDatasets.push(curDataset); } if(datas[k].phrase=="B"){ color="#047bf8";//blue var curDataset={ label: datas[k].phrase, fill: false, lineTension: 0.1, backgroundColor: "#fff", borderColor: color, borderCapStyle: 'butt', borderDash: [], borderDashOffset: 0.0, borderJoinStyle: 'miter', pointBorderColor: "#fff",//white pointBackgroundColor: "#141E41",//black pointBorderWidth: 1, pointHoverRadius: 10, pointHoverBackgroundColor: "#FC2055",//red pointHoverBorderColor: "#fff", pointHoverBorderWidth: 1, pointRadius: 0, pointHitRadius: 10, data: ys, spanGaps: false }; this.myDatasets.push(curDataset); } if(datas[k].phrase=="C"){ color="#FC2055";//red var curDataset={ label: datas[k].phrase, fill: false, lineTension: 0.1, backgroundColor: "#fff", borderColor: color, borderCapStyle: 'butt', borderDash: [], borderDashOffset: 0.0, borderJoinStyle: 'miter', pointBorderColor: "#fff",//white pointBackgroundColor: "#141E41",//black pointBorderWidth: 1, pointHoverRadius: 10, pointHoverBackgroundColor: "#FC2055",//red pointHoverBorderColor: "#fff", pointHoverBorderWidth: 1, pointRadius: 0, pointHitRadius: 10, data: ys, spanGaps: false }; this.myDatasets.push(curDataset); } ys=[]; //【到这里结束】 } //【这里开始有结果】 console.log(myDatasets); // line chart data var lineData = { labels: xs, datasets: myDatasets }; // line chart init var myLineChart = new Chart(lineChart, { type: 'line', data: lineData, options: { legend: { display: false }, scales: { xAxes: [{ ticks: { fontSize: '11', fontColor: '#969da5' }, gridLines: { color: 'rgba(0,0,0,0.05)', zeroLineColor: 'rgba(0,0,0,0.05)' } }], yAxes: [{ display: false, ticks: { beginAtZero: true, max: 65 } }] } } }); console.log("绘制结束"); } ``` 在这个函数的ajax里面调用的这个函数↓ ``` function show3(id1,id2,id3) { console.log("show3"); var ids=[id1,id2,id3]; var flag = false; //标识,表示页面上数据还未处理完成 var datas=[]; console.log(ids); for(var i=0;i<3;i++){ //console.log(ids); var curid=ids[i]; $.ajax({ type : "get", url : "observe/getImage", data : { ID : curid }, beforeSend: function () { ShowDiv(); }, complete: function () { HiddenDiv(); }, success : function(data) { console.log(data) datas.push(data); } }); } console.log(datas); //绘制波形图 //drawWaveform(data.points); drawWaveform(datas);//【**在这里调用的**】 $("#closeDivBtn").html("<input class=\"mr-2 mb-2 btn btn-primary btn-lg\" type=\"button\" value=\"关闭\" onclick=\"CloseDiv('MyDiv','fade')\">"); AlertDiv('MyDiv','fade'); } ```

javascript中的onclick功能按钮无法正常工作

<div class="post-text" itemprop="text"> <p>I am a newbie in jquery, I have a stupid question for onclick function. Please help me. I have a table, when viewer click "Add new" button, I will using jquery add a row to existing table. In new row, there are 2 textbox to input data and a button to transfer data from textbox to php file. This is my code: html code:</p> <pre><code>&lt;INPUT type="button" value="Add Row" onclick="addRow('dataTable')" /&gt; &lt;INPUT type="button" value="Delete Row" onclick="deleteRow('dataTable')" /&gt; &lt;TABLE id="dataTable" width="350px" border="1"&gt; &lt;thead&gt; &lt;td&gt;No&lt;/td&gt; &lt;td&gt;First name&lt;/td&gt; &lt;td&gt;Last name&lt;/td&gt; &lt;/thead&gt; &lt;?php include("functions/connect_db.php"); $no=0; $sql="SELECT * FROM `fullnames`"; $result=mysqli_query($conn,$sql) or die('Could not select Machine'.mysqli_error($conn)); while ($set=mysqli_fetch_array($result,MYSQLI_ASSOC)) { $no++; $first=$set['firstname']; $last=$set['lastname']; ?&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;?php echo $no; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $first; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $last; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/tbody&gt; &lt;/TABLE&gt; </code></pre> <p>script:</p> <pre><code>function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); cell1.innerHTML = rowCount ; var cell2 = row.insertCell(1); var element1 = document.createElement("input"); element1.type = "text"; element1.id="first_input_"+rowCount; cell2.appendChild(element1); var cell3 = row.insertCell(2); var element2 = document.createElement("input"); element2.type = "text"; element2.id="last_input_"+rowCount; cell3.appendChild(element2); var cell4=row.insertCell(3); var element3 = document.createElement('input'); element3.setAttribute('type','button'); element3.id="#button_"+rowCount; element3.className="butt_class"; element3.value='Save'; cell4.appendChild(element3); } $(document).ready(function() { $(".butt_class").click(function() { var ID=$(this).attr('id'); var first=$("#first_input_"+ID).val(); var last=$("#last_input_"+ID).val(); if(first.length&gt;0 &amp;&amp; last.length&gt;0) { $.ajax({ type: "POST", url: "add_new.php", data: dataString, cache: false }); } }) }) </code></pre> <p>When I click to Save button in each row, nothing is happen. I tried by replace all click Save function with alert but there is not change. Pls help me. Thank you in advance!</p> </div>

Sendmail PHP无法正常工作 - Go Daddy Hosting

<div class="post-text" itemprop="text"> <p>I think this is straightforward, but for some reason it's not working. Does anyone see a problem with my code? If not, I'm guessing it's the hosting that's the issue.</p> <p>Here's the code:</p> <p>HTML</p> <pre><code>&lt;form action="sendmail.php" name="form1" method="post"&gt; &lt;input name="hidSubmit" type="hidden" value="true" id="hidSubmit" /&gt; &lt;input type="text" placeholder="Your Name" name="txtName" required&gt;&lt;br&gt; &lt;input type="email" placeholder="Email Address" name="txtEmail" required&gt;&lt;br&gt; &lt;input type="number" placeholder="Phone Number" name="txtPhone"&gt;&lt;br&gt; &lt;button type="submit" value="Submit" class="butt"&gt;&lt;strong&gt;Submit&lt;/strong&gt;&lt;/button&gt; &lt;/form&gt; </code></pre> <p>PHP</p> <pre><code>&lt;?php //Check whether the submission is made if(isset($_POST["hidSubmit"])){ //msg body $txtMsg = "Enquiry From Website Name : ".$_POST["txtName"]." Email: ".$_POST["txtEmail"]." Phone: ".$_POST["txtPhone"]." "; //Declarate the necessary variables $mail_to = "info@insidemarketstrategy.com"; $mail_from= "admin@insidemarketstrategy.com"; $mail_sub="Inquiry from insidemarketstrategy.com Website"; $mail_mesg=$txtMsg; $headers = "From: admin@insidemarketstrategy.com " . "X-Mailer: php" . "Content-type: text/html; charset=iso-8859-1 "; //Check for success/failure of delivery if(mail($mail_to,$mail_sub,$mail_mesg,$headers)) echo "&lt;div class='alert alert-success alert-dismissable' id='alertmsg'&gt; &lt;button type='button' class='close' data-dismiss='alert' aria-hidden='true'&gt;&amp;times;&lt;/button&gt; &lt;h3&gt;Thank you !&lt;br&gt;&lt;br&gt;&lt;span&gt;we will get in touch with you soon&lt;/span&gt;&lt;/h3&gt; &lt;/div&gt;"; else echo "&lt;div class='alert alert-danger alert-dismissable'&gt;&lt;center&gt;&lt;span class='textred' align='center'&gt;&lt;b&gt;Failed to send the E-mail from $mail_sub to $mail_to&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/div&gt;"; } echo ("&lt;meta http-equiv='refresh' content='5 ;url=index.html'&gt;"); ?&gt; </code></pre> </div>

Ajax和jQuery与PHP

<div class="post-text" itemprop="text"> <p>I have this code which posts data using jQuery and ajax to itself.</p> <pre><code>&lt;input type="button" id="butt" value="button11111111111111" &gt; &lt;script&gt; $("#butt").on('click',function(e) { $.ajax( { type:'POST', url:'test.php', data:product_type:"cake" }); }); &lt;/script&gt; &lt;?php if(isset($_POST['product_type'])) $abc=$_POST['product_type']; if(isset($abc)) echo $abc; ?&gt; </code></pre> <p>Now when I try to run this code.I do get the ok status inside the <strong>Network Console</strong> of Chrome but this code doesn't echo the output. </p> <p>I simply want to display the result that has been passed by the ajax method.</p> <p>I am new to ajax and jquery so i don't know much about how they work exactly but is it possible? If yes, then how could i achieve that without actually refreshing the page?</p> </div>

如何在jquery中重复多次的div部分中显示相应的名称?

<div class="post-text" itemprop="text"> <p>I have written a code in jquery for displaying a particular <code>&lt;div&gt;</code> section multiple times which contains format for displaying names.</p> <p>First I have a form for entering the names and age as shown below :</p> <pre><code>&lt;form action="" method="post" name="person" id="addperson"&gt; &lt;div&gt; &lt;div class="form-group col-md-12"&gt; &lt;label for="exampleInputEmail1"&gt;First Name&lt;/label&gt; &lt;input type="text" class="form-control" name="fname" id="fnname" placeholder="First Name" required&gt; &lt;div class="clearfix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="form-group col-md-12"&gt; &lt;label for="exampleInputEmail1"&gt;Last Name&lt;/label&gt; &lt;input type="text" class="form-control" name="lname" id="lnname" placeholder="Last Name" required&gt; &lt;div class="clearfix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="form-group col-md-7"&gt; &lt;label for="exampleInputEmail1" class="ctred"&gt;Age only if under 18&lt;/label&gt; &lt;input type="text" class="form-control" name="age" id="aage" placeholder="Age" required&gt; &lt;div class="clearfix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;button type="submit" id="senddata" name="send" class="btn btn-primary mag_top2"&gt;Submit&lt;/button&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>The above code is for entering the names and age when clicking the submit button , it should enter the values into the database. For each values of names and age, a <code>&lt;div&gt;</code> section is displayed with the corresponding names entered. The div section is shown below in the <code>#pern</code> appended:</p> <pre><code>$(document).ready(function(){ $("#senddata").click(function(e) { $.ajax({ type : "POST", url : "data2.php", data : dataString, cache : false, success : function(result1){ var fname = firstname; var lname = lastname; var fullname = fname.concat(" ",lname); document.getElementById("fullname").innerHTML = fullname; //$("#fullname").html(fullname); } }); $('#addperson').trigger("reset"); $("#pern").append( "&lt;div class='pad pen col-xs-12 col-sm-12 col-md-12 pern alert' id='bloc_style'&gt;\ &lt;div class='pad col-xs-12 col-md-6'&gt;\ &lt;h4 id='fullname'&gt;&lt;/h4&gt;\ &lt;/div&gt;\ &lt;div class='pad col-md-5'&gt;\ &lt;span class='next-step'&gt;\ &lt;button class='ret_but butt label label-primary' id='equipment' name='equipment' type='button'&gt;Select Equipment&lt;/button&gt;\ &lt;/span&gt;\ &lt;div class='status'&gt;\ &lt;b&gt;Status&lt;/b&gt;&lt;i class='open' id='open'&gt;Open&lt;/i&gt;\ &lt;/div&gt;\ &lt;/div&gt;\ &lt;div class='pad col-md-1'&gt;\ &lt;button aria-hidden='true' data-dismiss='alert' class='closee' id='garbage' type='button'&gt; \ &lt;i class='fa fa-trash-o' aria-hidden='true'&gt;&lt;/i&gt;\ &lt;/button&gt;\ &lt;/div&gt;\ &lt;/div&gt;"); }); }); </code></pre> <p>For each names which I have entered in the form, it should display in the div given in <code>#pern</code> with the name. But with this code, for each name entered and clicking the submit button a div section is created but the name entered will be displayed in the previous div section displayed replacing the previous name entered. How to avoid this ? I want to display the name in the corresponding box only not replacing the previous box with the previous name.</p> </div>

Yii CgridView批量删除

<div class="post-text" itemprop="text"> <p>In many of my Models' CgridViews I have a bulk delete function: a chechboxColumn and a delete button which deletes all the checked users. For that I am using ajax in the admin and a new action in the controller.</p> <p>All this works fine until I add pagination to th gridview, which is not saving the checked rows in the previous pages.</p> <p>I tried to use 'enableHistory'=true, but it did nothing (and from what I'v read I'm not the only one :mellow: ) , so I downloaded this extension: selgridview</p> <p>The extension works - when I move through the pages , the checked rows stay checked BUT , my bulk delete function is seeing only the checked rows of the page I'm in right now.</p> <p>this is the ajax I'm using: </p> <pre><code> &lt;?php Yii::app()-&gt;clientScript-&gt;registerScript('delete',' $("#butt").click(function(){ var checked=$("#person-grid").yiiGridView("getChecked","person-grid_c11"); var count=checked.length; if(count&gt;0 &amp;&amp; confirm(" are you sure you want to delete "+count+" people ? ")) { $.ajax({ data:{checked:checked}, url:"'.CHtml::normalizeUrl(array('person/remove')).'", success:function(data){$("#person-grid").yiiGridView("update",{});}, }); } }); '); ?&gt; </code></pre> <p>Now , maybe thats a silly question but I know little about javascript. I'm not even sure that the problem is in the ajax . . . . </p> <p>Help would be much appreciated :rolleyes: </p> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

再不跳槽,应届毕业生拿的都比我多了!

跳槽几乎是每个人职业生涯的一部分,很多HR说“三年两跳”已经是一个跳槽频繁与否的阈值了,可为什么市面上有很多程序员不到一年就跳槽呢?他们不担心影响履历吗? PayScale之前发布的**《员工最短任期公司排行榜》中,两家码农大厂Amazon和Google**,以1年和1.1年的员工任期中位数分列第二、第四名。 PayScale:员工最短任期公司排行榜 意外的是,任期中位数极小的这两家公司,薪资...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

数据库——玩转SQL语句(以MySQL为例)

一、前言 照着大学的SQL server来学

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

01、Java入门(Getting Started);02、集成开发环境(IDE);03、项目结构(Eclipse JavaProject);04、类和对象(Classes and Objects);05:词法结构(Lexical Structure);06:数据类型和变量(Data Type and Variables);07:运算符(Operators);08:控制流程语句(Control Flow Statements);

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

立即提问
相关内容推荐