나는이 형식의 문자열이있다. 형식 날짜는
나는, 그것은이 방법을 사용 할moment(testDate,'mm/dd/yyyy');
어떤 오류하려고 노력하고 there is no such method called replace
을 말한다? 나는 이것을 잘못된 방향으로 접근하고 있는가?
편집 :
나는 또한 내가 meteor.js에 대한
Object [object Date] has no method 'replace' : The Exact error from the console
스택 추적 패키지 moment.js의 사전 패키지 버전, 사용하고 있음을 언급해야한다 :
at makeDateFromStringAndFormat (http://127.0.0.1:3000/packages/moment/lib/moment/moment.js?b4e3ac4a3d0794023a4410e7941c3e179398b5b0:539:29)
at moment (http://127.0.0.1:3000/packages/moment/lib/moment/moment.js?b4e3ac4a3d0794023a4410e7941c3e179398b5b0:652:24)
at populateProfileForEdit (http://127.0.0.1:3000/client/views/home/administration/directory/profiles/profiles.js?acfff908a6a099f37312f62892a22b40f82e5e0f:147:25)
at Object.Template.profile_personal.rendered (http://127.0.0.1:3000/client/views/home/administration/directory/profiles/profiles.js?acfff908a6a099f37312f62892a22b40f82e5e0f:130:13)
at Spark.createLandmark.rendered (http://127.0.0.1:3000/packages/templating/deftemplate.js?b622653d121262e50a80be772bf5b1e55ab33881:126:42)
at http://127.0.0.1:3000/packages/spark/spark.js?45c746f38023ceb80745f4b4280457e15f058bbc:384:32
at Array.forEach (native)
at Function._.each._.forEach (http://127.0.0.1:3000/packages/underscore/underscore.js?867d3653d53e9c7a171483edbcad9670e12288c7:79:11)
at http://127.0.0.1:3000/packages/spark/spark.js?45c746f38023ceb80745f4b4280457e15f058bbc:382:7
at _.extend.flush (http://127.0.0.1:3000/packages/deps/deps.js?9642a93ae1f8ffa8eb1c2475b198c764f183d693:231:11)
당신이 사용하고는'()'코드에서 대체? 그렇지 않은 경우, 사용중인 플러그인이 존재하지 않는 메소드를 부적절하게 호출합니다. – cereallarceny
정확한 오류 및 스택 추적을 사용하여 '대체'라는 메서드로 내 질문을 업데이트했습니다. 나는 전혀 바꾸지 않고 직접 전화하고있다. – Warz