Jump to content
  • 0

Как понять if (/color/.test(webKitStyles[i]))


Аркадий
 Share

Question

Как понять это выражение?

if (/color/.test(webKitStyles))

Вроде в слэши заключается выражение для шаблона замены. Даже предположить не могу каково может быть значение выражения /color/

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Similar Content

    • By moroz69off
      <html> <body> <header> <div id="" class="right_link"> отменить операцию и вернуться на <a href="#">главную страницу</a> </div> </header><br><br><hr><form class="form-horizontal" action="#"> <h3>Форма предварительного технического задания</h3> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam <div class="control-group"> <label class="control-label" for="inputName">Ваше имя и фамилия:</label> <div class="controls"> <input style="margin-left:2em" type="text" id="inputName" placeholder="Имя" class="span2"> <input type="text" id="inputName2" placeholder="Фамилия" class="span2"> </div> </div> <div class="control-group"> <label class="control-label" for="inputTel">Контактный телефон:</label> <div class="controls"> <input type="text" id="inputTel" placeholder="+7 123 4567890" class="span4"> </div> </div> <div class="control-group"> <label class="control-label" for="inputEmail">Ваш email дрес:</label> <div class="controls"> <input type="text" name="inputEmail" placeholder="email" class="span4"> </div> </div> <div class="wrapper"> <div class="content"> <div class="control-group"> <label class="control-label" for="inputMessenger"> Дополнительно: </label> <div class="controls" name="inputMessenger"> <div class="param"> <select class="span2" name="sel_mess"> <option>skype</option> <option>icq</option> <option>fax</option> </select> <input type="text" name="messenger" placeholder="Мессенджер" class="span2" > <input type="button" value="+" id="form_status_added"> </div> </div> </div> </div> <div class="control-group"> <label class="control-label" for="input_project_name">Название проекта:</label> <div class="controls"> <input type="text" name="input_project_name" placeholder="Введите название" class="span4"> </div> </div> <div class="control-group"> <label class="control-label" for="input_site_address">Адрес сайта:</label> <div class="controls"> <input type="text" name="input_site_address" placeholder="Введите адрес" class="span4"> </div> </div> <div class="control-group"> <label class="control-label" for="type_of_project">Тип проекта:</label> <div class="controls" name="type_of_project"> <select class="span4"> <option>Сайт - визитка</option> <option>Интернет - магазин</option> <option>Другое</option> </div> </div></form> </body><script> $(function() { $("#form_year_added").on("click",function () { var number_year = $("#form_year_number").text() -1; $("#form_year_number").html(number_year); $("<div class='param'><label for='year_" + number_year + "'>" + number_year + " год</label> <input type='text' id='year_" + number_year + "' name='year[]'></div>" ).appendTo( ".list_year" ); }) $("#form_status_added").click(function () { $("<div class='param'><select class='span2' name='sel_mess'><option>skype</option><option>icq</option><option>fax</option></select><input type='text' name='messenger' placeholder='Мессенджер' class='span2'></div>" ).insertBefore("#form_status_added"); }) }); </script></html> C  уважением, Морозов Юрий.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy