jquery 스크립트를 사용하는 응용 프로그램이 있습니다. 내 로컬 웹 스톰 서버에서 제대로 작동합니다. 그러나 wordpress에 업로드 할 때 작동하지 않습니다. 나는 이유를 모른다.jQuery 코어가 Wordpress에서 작동하지 않습니다.
wp_enqueue_script('rt_calcA_jqueryl', get_template_directory_uri() . '/assets/CalculatorAccidents/jQuery/jQuery.js', null, '1.0.0', false);
코드는 noConflict
모드 : 여기
내가 내 jQuery 코드를 연결하는 방법입니다. 다음 코드 조각은 다음과 같습니다
jQuery(document).ready(function() {
jQuery('#resultK').click(function(e) {
var isValid = true;
jQuery('input[type="number"]').each(function() {
if (jQuery.trim(jQuery(this).val()) === '') {
isValid = false;
jQuery(this).css({
"border": "1px solid red",
"background": "#FFCECE"
});
} else {
jQuery(this).css({
"border": "",
"background": ""
});
콘솔 오류? – mplungjan
@ mplungjan 오류가 없습니다 .. –
페이지 소스에서 js의 URL을보고 해당 URL에 올바른 jQuery가 출력되는지 확인하십시오. –