$(window).scroll(function() { if ($(this).scrollTop() > 0) { $( .header-menu-layout ).css( background-color , white ); $( .header-menu-layout ).animate({ backgroundColor: white }, 300); } if ($(this).scrollTop() =...
https: medium.com s story no... ask him to order this menu on the left he will change the fixed based on the position of "it " on the scroll scroll to the bottom "it " will stop at the specified location what technique is this? How can it be...
https: quilljs.com I just have a problem with using this editor . he can only enter the network address when uploading videos , but what I want to do now is to upload , so I think of a way to import it to editor . var video = this.files[0]; var v...
https: summernote.org deep-d. $( -sharpsummernote ).summernote( insertImage , url, function ($image) { $image.css( width , $image.width() 3); $image.attr( data-filename , retriever ); }); his official API does so. it s just a weird...
the default is to grab data via "id " or selector (for example, .text () ) to the back end via ajax using e.currentTarget.dataset.XXX how can I avoid being tampered with by the server? do I have to give it to value later? I wonder if jquery h...
subject I am currently using the third-party suite editor: summernote . I took a look at the official API file. You can add the following button: https: summernote.org deep-d. . var button = ui.button({ contents: <i class="fa fa-c...
subject div the contenteditable function can be copied into or accepted by HTML. If I copy an article from SF to this div, the original HTML tag of SF will be copied. Code <div contenteditable=true">< div> question d...
In the company s project, as the response of iterating some operations becomes slower and slower, the slowest time an operation can have is more than 550ms . want to optimize it, but Mengxin doesn t know exactly where to start. I also want to ask ...
$(document).on("change", ".uploadVideo", function() { var video = this.files[0]; var videoUrl = window.URL.createObjectURL(video); I did an upload to the blob address, like this: blob:http: localhost 367a4312-f142-4646-8a8d-7c...
this is the forecast for film sales $( input[type=file] ).change(function() { var input = $(this); if(!!this.files && !!this.files[0]) { var reader = new FileReader(); reader.onload = function(e) { $( -sharppre + input...
The slider code is here https: codeshelper.com q 10.. question 1 if this slider is running on the computer, the left and right slides will not move up and down. but when you use your mobile phone to slide left and right, you can also move up and d...
$(document).ready(function() { }); $(window).ready(function () { }); $(window).load(function() { }); $(window).on( load , function () { }); $(function() { }); (function($) { })(jQuery); want to figure out which one to use? Or is there somet...
$(document).ready(function() { var isChange = false; var editObj = $("input,textarea,select"); editObj.change(function () { isChange = true; $(this).addClass("editing"); }); $(window).bind( beforeunlo...
I want to send the value to the data- series attr( data-discount_id , response.discount_id) but I find that there is no way to do it. make sure the response.discount_id has a value is there any way to enter the value? ...
$( body ).on( change , .add-btn ,function(e){ var id = $( .admin-upload-inline ).length + 1; var iconLayout = $( <div class="admin-upload-inline add-btn pointer" id="icon-layout- +id+ "> ); var fileInp...
$(function() { $( -sharpremove_favorite_btn ).click(function (e){ e.preventDefault(); $.ajax({ type: "GET", url: , success: function(data){ $( -sharpremove_favorite_btn ).attr( id , add_favorite_b...
my code picture loading code is divided into three pieces 1. Load the picture template (there is no src for the picture at this time) 2. Bind the load method (resize the picture dynamically) 3. Add a path to the picture loop the effect I want is to...
<!DOCTYPE HTML PUBLIC "- W3C DTD HTML 4.01 Transitional EN" "http: www.w3.org TR html4 loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text html; charset=utf-8"> ...
when the other two tab, are not selected, the mouse will change color. If the mouse moves over the selected tab, it will not change color Code: $( document).ready(function(){ $( .fixed_bar ).find( li ).click(function(){ $( .fixed_bar )...
list of submit-sharpadd_form when ctrl+s or command+s is pressed $(window).bind( keydown , function(event) { if (event.ctrlKey || event.metaKey) { switch (String.fromCharCode(event.which).toLowerCase()) { case s : event.preventDef...
for example, in the @ Service singleton mode, how many times will the set method be executed using the attributes injected by @ Autowired? is configured directly with the bean node in xml? ...
the configuration file is as follows: < hr > < H2 >-filebeat-< H2 > type: log enabled: true paths: var log nginx userapi.access.log json.message_key: true json.keys_under_root: true json.overwrite_keys: true tail_files: true fields...
set style <style lang="scss" scoped> * { margin: 0; padding: 0; box-sizing: border-box; } < style> found that it is only valid for some elements. all valid after being changed to deep .editor deep { * { ...
there is an error in the operation of vue. I put a video into vue with import, but after running it, I reported an error, saying that the allocation of cache failed. Ask the boss to explain the reason and see if there is any good solution. ...
can the data returned by the management interface be printed to the specified log by nginx? Instead of printing the entire request information? (big people who know this area can explain these two kinds of logs in detail.) ...